Fix: avoid warning
This commit is contained in:
parent
bd6f5c4ca7
commit
e6c6d6cf84
@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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++)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user