summaryrefslogtreecommitdiff
path: root/www/functions/func_delete.php
diff options
context:
space:
mode:
authormoehm2014-03-26 08:06:47 +0100
committermoehm2014-03-26 08:06:47 +0100
commitcaa6a7afee2da0d62cd31ef76506d0f37e259f4d (patch)
tree6877a822b1a2f272493d66948c3270ce58e11768 /www/functions/func_delete.php
parente009b1e84dcbcc83f39652695eb86c6e64cc6a11 (diff)
downloadfiles.iamfabulous.de-caa6a7afee2da0d62cd31ef76506d0f37e259f4d.tar.gz
Various improvements, e.g. move_folder() and a new database layout.
Diffstat (limited to 'www/functions/func_delete.php')
-rw-r--r--www/functions/func_delete.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/www/functions/func_delete.php b/www/functions/func_delete.php
index 17da1c4..059bc3b 100644
--- a/www/functions/func_delete.php
+++ b/www/functions/func_delete.php
@@ -61,8 +61,8 @@ function delete_file($user, $path){
}
for($i=0; $i<count($hash_ar); $i++){
- if(!unlink($uploaddir.$file_hash.".gz")){
- if(!$file_hash[$i] != ""){
+ if(!$file_hash[$i] != ""){
+ if(!unlink($uploaddir.$file_hash.".gz")){
return DELETE_FILE_UNLINK;
}
}
@@ -170,8 +170,8 @@ function delete_user($user, $password, $password_verify){
}
for($i=0; $ii<count($hash_ar); $i++){
- if(!unlink($uploaddir.$hash_ar[$i].".gz")){
- if($hash_ar[$i] != ""){
+ if($hash_ar[$i] != ""){
+ if(!unlink($uploaddir.$hash_ar[$i].".gz")){
return DELETE_USER_FILE_DELETE;
}
}