diff options
Diffstat (limited to 'php/database.php')
-rw-r--r-- | php/database.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/php/database.php b/php/database.php index bb8cfa4..1e76d77 100644 --- a/php/database.php +++ b/php/database.php @@ -337,8 +337,10 @@ require_once "node.php"; { error_log("could not exedude dir sql statement in create_file_node"); return "error"; - } - if(($dir=$dir_prep->fetch(PDO::FETCH_ASSOC))==false) + } + + $dir=$dir_prep->fetch(PDO::FETCH_ASSOC); + if($dir == false) { error_log("create_file_node dir isnt a directory"); return "error"; |