Fix: strict mode pleasure

This commit is contained in:
Regis Houssin 2012-08-01 13:30:38 +02:00
parent 29fea7bbf4
commit c558f2206c
2 changed files with 3 additions and 3 deletions

View File

@ -255,8 +255,8 @@ class User extends CommonObject
while ($i < $num) while ($i < $num)
{ {
$obj = $this->db->fetch_object($resql); $obj = $this->db->fetch_object($resql);
$p=$obj->param; $p=(! empty($obj->param)?$obj->param:'');
if ($p) $this->conf->$p = $obj->value; if (! empty($p)) $this->conf->$p = $obj->value;
$i++; $i++;
} }
$this->db->free($resql); $this->db->free($resql);

View File

@ -1315,7 +1315,7 @@ else
if (! empty($groupslist)) if (! empty($groupslist))
{ {
if (! ($conf->multicompany->enabled && $conf->multicompany->transverse_mode)) if (! (! empty($conf->multicompany->enabled) && ! empty($conf->multicompany->transverse_mode)))
{ {
foreach($groupslist as $groupforuser) foreach($groupslist as $groupforuser)
{ {