[-] IN : Remove warnings when safe_mode open_basedir missconfigured

This commit is contained in:
gRoussac
2013-09-08 17:25:59 +02:00
parent 2874f14983
commit 19a6c4373e
3 changed files with 8 additions and 8 deletions
@@ -30,8 +30,8 @@ function p15015_blockadvertising_extension()
define('_PS_ROOT_DIR_', realpath(INSTALL_PATH.'/../'));
// Try to update with the extension of the image that exists in the module directory
if (file_exists(_PS_ROOT_DIR_.'modules/blockadvertising'))
foreach (scandir(_PS_ROOT_DIR_.'modules/blockadvertising') as $file)
if (@file_exists(_PS_ROOT_DIR_.'modules/blockadvertising'))
foreach (@scandir(_PS_ROOT_DIR_.'modules/blockadvertising') as $file)
if (in_array($file, array('advertising.jpg', 'advertising.gif', 'advertising.png')))
Db::getInstance()->execute('
REPLACE INTO `'._DB_PREFIX_.'configuration` (name, value)