clean code class commondict (#35952)

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* add fetchAll in abstract class commondict

* clean code
This commit is contained in:
Frédéric FRANCE
2025-10-28 01:25:30 +01:00
committed by GitHub
parent e37c7678a4
commit 03ea0cda01
11 changed files with 19 additions and 127 deletions

View File

@@ -506,7 +506,7 @@ class Setup extends DolibarrApi
$obj = $this->db->fetch_object($result);
$state = new Cstate($this->db);
if ($state->fetch($obj->rowid) > 0) {
if (empty($filter) || stripos($state->label, $filter) !== false) {
if (empty($filter) || stripos((string) $state->label, $filter) !== false) {
$list[] = $this->_cleanObjectDatas($state);
}
}
@@ -619,7 +619,7 @@ class Setup extends DolibarrApi
// and then apply the filter if there is one.
$this->translateLabel($country, $lang, 'Country');
if (empty($filter) || stripos($country->label, $filter) !== false) {
if (empty($filter) || stripos((string) $country->label, $filter) !== false) {
$list[] = $this->_cleanObjectDatas($country);
}
}