summaryrefslogtreecommitdiff
path: root/www/functions/func_select.php
diff options
context:
space:
mode:
authorroot2014-03-22 02:14:04 +0100
committerroot2014-03-22 02:14:04 +0100
commitf1840d40760abb9869bd218ca510eceb94f86478 (patch)
tree5e7afdd68c2e639bfa89c91fa3da07749b4fc093 /www/functions/func_select.php
parent296d8a14511739a15327ffe30c0895cd3490e940 (diff)
downloadfiles.iamfabulous.de-f1840d40760abb9869bd218ca510eceb94f86478.tar.gz
Differences between folder_is_empty and file_not_found. TODO: Extra design for empty folder.
Diffstat (limited to 'www/functions/func_select.php')
-rwxr-xr-xwww/functions/func_select.php6
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
}