diff options
| author | moehm | 2014-03-19 17:39:48 +0100 |
|---|---|---|
| committer | moehm | 2014-03-19 17:39:48 +0100 |
| commit | c526938c960524e8e79124890875cd7afeae1d7f (patch) | |
| tree | fd47ad71e1f96cdd3866bc5495226bc0f4d6e79f /www/functions/func_select.php | |
| parent | 716707414f1ef931ba33abb4f508bf53a5b3564c (diff) | |
| download | files.iamfabulous.de-c526938c960524e8e79124890875cd7afeae1d7f.tar.gz | |
Added func_download and func_delete.
Diffstat (limited to 'www/functions/func_select.php')
| -rwxr-xr-x | 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 2acfb93..a720feb 100755 --- a/www/functions/func_select.php +++ b/www/functions/func_select.php @@ -24,12 +24,12 @@ function select_file_id($db, $owner, $folder_path){ for($i=0; $i<$length; $i++){ - $parentdir_db = $db->query("SELECT id, parent FROM files WHERE owner=" . $owner . " AND folder='DIRECTORY' " . $share . " AND parent=" . $parentdir . " AND name='" . SQLite3::escapeString($folder_array_unsafe[$i]) . "';"); + $parentdir_db = $db->query("SELECT id, parent FROM files WHERE owner=" . $owner . " AND " . $share . " AND parent=" . $parentdir . " AND name='" . SQLite3::escapeString($folder_array_unsafe[$i]) . "';"); $prim_id = $parentdir_db->fetchArray(SQLITE3_NUM); if(empty($prim_id[0])){ - return $parentdir; + return $parentdir; //TODO; Return false because file not found } if($parentdir != $prim_id[1]){ |
