Fix: strict mode pleasure
This commit is contained in:
parent
29fea7bbf4
commit
c558f2206c
@ -255,8 +255,8 @@ class User extends CommonObject
|
||||
while ($i < $num)
|
||||
{
|
||||
$obj = $this->db->fetch_object($resql);
|
||||
$p=$obj->param;
|
||||
if ($p) $this->conf->$p = $obj->value;
|
||||
$p=(! empty($obj->param)?$obj->param:'');
|
||||
if (! empty($p)) $this->conf->$p = $obj->value;
|
||||
$i++;
|
||||
}
|
||||
$this->db->free($resql);
|
||||
|
||||
@ -1315,7 +1315,7 @@ else
|
||||
|
||||
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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user