note 102577 deleted from function.unlink by danbrown
| From: | danbrown@php.net | Date: | Tue, 22 Feb 2011 17:53:42 +0000 |
| Subject: | note 102577 deleted from function.unlink by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-177227@lists.php.net to get a copy of this message | ||
Note Submitter: webmaster at sebastiangrinke dot info
Reason: integrated
----
Argh, there is a little bug sry for this...
<?php
if(is_writeable($tmp_path.DS.$tmp) && is_dir($tmp_path.DS.$tmp)){
k8c_admin_area_write::k8c_delete_folder($tmp_path.DS.$tmp);
}elseif(!is_writeable($tmp_path.DS.$tmp) && is_dir($tmp_path.DS.$tmp)){
chmod($tmp_path.DS.$tmp,0777);
delete_folder($tmp_path.DS.$tmp);
}
?>
need to be replaced trough:
<?php
if(is_writeable($tmp_path.DS.$tmp) && is_dir($tmp_path.DS.$tmp)){
delete_folder($tmp_path.DS.$tmp);
}elseif(!is_writeable($tmp_path.DS.$tmp) && is_dir($tmp_path.DS.$tmp)){
chmod($tmp_path.DS.$tmp,0777);
delete_folder($tmp_path.DS.$tmp);
}
?>