fix scrutinzer

This commit is contained in:
Florian HENRY 2021-10-21 19:13:05 +02:00
parent 3bdec20364
commit 96722d55ef
2 changed files with 7 additions and 5 deletions

View File

@ -728,8 +728,6 @@ class Categorie extends CommonObject
} }
} }
// Call trigger // Call trigger
$this->context = array('linkto'=>$obj); // Save object we want to link category to into category instance to provide information to trigger $this->context = array('linkto'=>$obj); // Save object we want to link category to into category instance to provide information to trigger
$result = $this->call_trigger('CATEGORY_LINK', $user); $result = $this->call_trigger('CATEGORY_LINK', $user);
@ -755,6 +753,8 @@ class Categorie extends CommonObject
} }
return -1; return -1;
} }
return 0;
} }
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
@ -810,6 +810,8 @@ class Categorie extends CommonObject
$this->error = $this->db->lasterror(); $this->error = $this->db->lasterror();
return -1; return -1;
} }
return 0;
} }
/** /**