Merge pull request #19086 from FHenry/14_fix_various_warning
fix: fix various php warning
This commit is contained in:
commit
e4a757ff9e
@ -97,6 +97,7 @@ class box_supplier_orders_awaiting_reception extends ModeleBoxes
|
||||
}
|
||||
$sql .= " WHERE c.fk_soc = s.rowid";
|
||||
$sql .= " AND c.entity IN (".getEntity('supplier_order').")";
|
||||
$sql .= " AND c.date_livraison IS NOT NULL";
|
||||
$sql .= " AND c.fk_statut IN (".CommandeFournisseur::STATUS_ORDERSENT.", ".CommandeFournisseur::STATUS_RECEIVED_PARTIALLY.")";
|
||||
if (!$user->rights->societe->client->voir && !$user->socid) {
|
||||
$sql .= " AND s.rowid = sc.fk_soc AND sc.fk_user = ".((int) $user->id);
|
||||
|
||||
@ -1101,7 +1101,7 @@ function activateModule($value, $withdeps = 1)
|
||||
|
||||
if (!count($ret['errors'])) {
|
||||
$ret['nbmodules']++;
|
||||
$ret['nbperms'] += count($objMod->rights);
|
||||
$ret['nbperms'] += (is_array($objMod->rights)?count($objMod->rights):0);
|
||||
}
|
||||
|
||||
return $ret;
|
||||
|
||||
@ -384,6 +384,9 @@ class User extends CommonObject
|
||||
$this->rights->user = new stdClass();
|
||||
$this->rights->user->user = new stdClass();
|
||||
$this->rights->user->self = new stdClass();
|
||||
$this->rights->user->user_advance = new stdClass();
|
||||
$this->rights->user->self_advance = new stdClass();
|
||||
$this->rights->user->group_advance = new stdClass();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user