Fix: avoid warning

This commit is contained in:
Regis Houssin 2012-06-08 18:17:03 +02:00
parent bd6f5c4ca7
commit e6c6d6cf84
2 changed files with 3 additions and 3 deletions

View File

@ -661,7 +661,7 @@ function dol_delete_file($file,$disableglob=0,$nophperrors=0,$notrigger=0,$objec
//print "x".$file." ".$disableglob; //print "x".$file." ".$disableglob;
$ok=true; $ok=true;
$file_osencoded=dol_osencode($file); // New filename encoded in OS filesystem encoding charset $file_osencoded=dol_osencode($file); // New filename encoded in OS filesystem encoding charset
if (empty($disableglob)) if (empty($disableglob) && ! empty($file_osencoded))
{ {
foreach (glob($file_osencoded) as $filename) foreach (glob($file_osencoded) as $filename)
{ {

View File

@ -1092,10 +1092,10 @@ class Product extends CommonObject
$this->db->free($resql); $this->db->free($resql);
// multilangs // multilangs
if ($conf->global->MAIN_MULTILANGS) $this->getMultiLangs(); if (! empty($conf->global->MAIN_MULTILANGS)) $this->getMultiLangs();
// Load multiprices array // Load multiprices array
if ($conf->global->PRODUIT_MULTIPRICES) if (! empty($conf->global->PRODUIT_MULTIPRICES))
{ {
for ($i=1; $i <= $conf->global->PRODUIT_MULTIPRICES_LIMIT; $i++) for ($i=1; $i <= $conf->global->PRODUIT_MULTIPRICES_LIMIT; $i++)
{ {