From f1840d40760abb9869bd218ca510eceb94f86478 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 22 Mar 2014 02:14:04 +0100 Subject: Differences between folder_is_empty and file_not_found. TODO: Extra design for empty folder. --- www/functions/func_select.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'www/functions/func_select.php') diff --git a/www/functions/func_select.php b/www/functions/func_select.php index 53f1fa6..ae76121 100755 --- a/www/functions/func_select.php +++ b/www/functions/func_select.php @@ -30,8 +30,6 @@ function select_file_id($db, $owner, $folder_path){ return $root_id; // returns the primary key from the root dir } - //echo "Länge: ".$length." ".var_dump($folder_array_unsafe); exit; - for($i=0; $i<$length; $i++){ $parentdir_db = $db->query("SELECT id, parent FROM files WHERE owner=" . $owner . $share . " AND parent=" . $parentdir . " AND name='" . SQLite3::escapeString($folder_array_unsafe[$i]) . "';"); @@ -51,14 +49,14 @@ function select_file_id($db, $owner, $folder_path){ get_404($working_path, $wrong_folder); */ + return false; } + $parentdir = $prim_id[0]; - var_dump($parentdir); echo "func_select, during for"; } - //var_dump($parentdir); echo "func_select, after for"; exit; return $parentdir; // returns the primary key from the last entry in the folder array } -- cgit v1.2.3