diff options
| -rw-r--r-- | www/functions/func_select.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/functions/func_select.php b/www/functions/func_select.php index 4a803b2..ca3c53f 100644 --- a/www/functions/func_select.php +++ b/www/functions/func_select.php @@ -1,6 +1,6 @@ <? function select($db){ - if($_SESSION["login"]){ + if($_SESSION["login"]){ // TODO: Check if loged in user really the user who does the query $share=""; } else { $share ="AND share='PUBLIC'"; @@ -26,7 +26,7 @@ function select($db){ $root_db = $db->query("SELECT id FROM files WHERE parent=0 AND owner=" . $owner . " AND folder='DIRECTORY' " . $share . ";"); $root_ar = $root_db->fetchArray(SQLITE3_NUM); if(empty($root_ar)){ - failure("There is something seriously wrong. If you are a human you should never read this. Mail the admin please."); + failure("Seems like the user doesn't want to show his tree: " . $root_id); } $root_id = $root_ar[0]; $parentdir = SQLite3::escapeString($root_id); |
