Try to fix phan warning
This commit is contained in:
parent
6f689c137b
commit
21995b881b
1 changed files with 1 additions and 1 deletions
|
|
@ -1377,7 +1377,7 @@ class Categorie extends CommonObject
|
|||
* So if the result have the same id, update is not for label, and if result have an other one,
|
||||
* update may be for label.
|
||||
*/
|
||||
if (!empty($obj) && $obj[0] > 0 && $obj[0] != $this->id) {
|
||||
if (!empty($obj) && !empty($obj[0]) && $obj[0] > 0 && $obj[0] != $this->id) {
|
||||
dol_syslog(get_class($this)."::already_exists category with name=".$this->label." and parent ".$this->fk_parent." exists: rowid=".$obj[0]." current_id=".$this->id, LOG_DEBUG);
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue