diff options
| author | root | 2014-03-21 17:48:09 +0100 |
|---|---|---|
| committer | root | 2014-03-21 17:48:09 +0100 |
| commit | 4611b609e81cce6ba1269707ff7f483d285bcec3 (patch) | |
| tree | 0ae9512d8bbffc97ecf03ad0a2b15571556ae90d | |
| parent | cd7aeaef26bf05e42e789da6bc4a97118c40d616 (diff) | |
| download | files.iamfabulous.de-4611b609e81cce6ba1269707ff7f483d285bcec3.tar.gz | |
Now it should work fine.
| -rwxr-xr-x | www/functions/func_content.php | 2 | ||||
| -rwxr-xr-x | www/functions/func_select.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/www/functions/func_content.php b/www/functions/func_content.php index c750554..e24ea34 100755 --- a/www/functions/func_content.php +++ b/www/functions/func_content.php @@ -94,7 +94,7 @@ function print_empty_folder($content){ $wrong_folder = $content[$length-1]; $working_path[0] = $wrong_folder; // initialize empty array - for($i=0; $i<$length-2, $i++){ + for($i=0; $i<$length-2; $i++){ $working_path[$i] = $content[$i]; } diff --git a/www/functions/func_select.php b/www/functions/func_select.php index c19efe7..af7b239 100755 --- a/www/functions/func_select.php +++ b/www/functions/func_select.php @@ -4,7 +4,7 @@ function select_file_id($db, $owner, $folder_path){ if($_SESSION["login"] && $_SESSION["userid"] == $owner){ // TODO: Check if loged in user really the user who does the query - fix 12.3.14 $share=""; // to print all files, even hidden ones } else { - $share ="AND share='PUBLIC'"; // just use files with the correct permissions + $share =" AND share='PUBLIC'"; // just use files with the correct permissions } $folder_array_unsafe = explode("/",$folder_path); |
