diff options
Diffstat (limited to 'www/functions/func_select.php')
| -rwxr-xr-x | www/functions/func_select.php | 6 |
1 files changed, 2 insertions, 4 deletions
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 } |
