diff --git a/system/core/tools.php b/system/core/tools.php index 537a90e9..c20f7e71 100644 --- a/system/core/tools.php +++ b/system/core/tools.php @@ -531,8 +531,10 @@ function cs_unlink($mod, $filename, $sub = '') { return FALSE; } } - else + else { + cs_error($target,'cs_unlink - Failed to remove the file because file doesn\'t exist'); return FALSE; + } } function cs_upload($mod,$filename,$upname, $ajaxclean = 1) { @@ -633,4 +635,4 @@ function cs_userstatus($laston = 0, $invisible = 0, $mode = 0) { } if ($mode == 1) return $text; return $mode == 2 ? $icon . ' ' . $text : $icon; -} \ No newline at end of file +}