Update user.class.php

This commit is contained in:
Laurent Destailleur 2021-03-02 14:44:31 +01:00 committed by GitHub
parent 812d3279b3
commit 3a00952cd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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');