[-] CORE : file_put_contents() returns the number of bytes that were written to the file, or FALSE on failure.

This commit is contained in:
gRoussac committed 2013-02-06 19:21:23 +01:00
1 parent a7588f5cc0
commit 5e98812e19
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -2795,7 +2795,7 @@ class AdminControllerCore extends Controller
{
$content = Tools::file_get_contents($external_file);
if ($content)
return file_put_contents(_PS_ROOT_DIR_.$file_to_refresh, $content);
return (bool)file_put_contents(_PS_ROOT_DIR_.$file_to_refresh, $content);
return false;
}