projects
/
phpfspot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7936255
)
only check if phpfspot SQLite database is writeable, if the file really exists
author
Andreas Unterkircher
<unki@netshadow.at>
Wed, 15 Oct 2008 21:38:30 +0000
(23:38 +0200)
committer
Andreas Unterkircher
<unki@netshadow.at>
Wed, 15 Oct 2008 19:47:26 +0000
(21:47 +0200)
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
phpfspot.class.php
patch
|
blob
|
history
diff --git
a/phpfspot.class.php
b/phpfspot.class.php
index 9b24d3bb05e338d507c89814b4510e66457debeb..edfed95e1cae4294c6305f3f460a4f162f5eff37 100644
(file)
--- a/
phpfspot.class.php
+++ b/
phpfspot.class.php
@@
-189,7
+189,7
@@
class PHPFSPOT {
}
/* Check if database file is writeable */
- if(!is_writeable($this->cfg->phpfspot_db)) {
+ if(
file_exists($this->cfg->phpfspot_db) &&
!is_writeable($this->cfg->phpfspot_db)) {
print "Error: ". $this->cfg->phpfspot_db ." is not writeable for user ". $this->getuid() .".\n";
print "Please fix permissions so phpfspot can create its own sqlite database to store some settings.\n";
exit(1);