Update user.class.php
This commit is contained in:
parent
812d3279b3
commit
3a00952cd1
@ -616,7 +616,7 @@ class User extends CommonObject
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/defaultvalues.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/defaultvalues.class.php';
|
||||||
|
|
||||||
$defaultValues = new DefaultValues($this->db);
|
$defaultValues = new DefaultValues($this->db);
|
||||||
$result = $defaultValues->fetchAll('', '', 0, 0, array('t.user_id'=>array(0,$this->id), 'entity'=>array($this->entity,$conf->entity)));
|
$result = $defaultValues->fetchAll('', '', 0, 0, array('t.user_id'=>array(0, $this->id), 'entity'=>array($this->entity, $conf->entity))); // User 0 (all) + me (if defined)
|
||||||
|
|
||||||
if (!is_array($result) && $result < 0) {
|
if (!is_array($result) && $result < 0) {
|
||||||
setEventMessages($defaultValues->error, $defaultValues->errors, 'errors');
|
setEventMessages($defaultValues->error, $defaultValues->errors, 'errors');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user