Fix: strict mode pleasure
This commit is contained in:
parent
29fea7bbf4
commit
c558f2206c
@ -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);
|
||||||
|
|||||||
@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user