Updated controllers, install and modules for PHP 8.x compatibility
This commit is contained in:
@@ -297,7 +297,10 @@ class AdminSearchControllerCore extends AdminController
|
||||
$this->_list['modules'] = array();
|
||||
$all_modules = Module::getModulesOnDisk(true, true, Context::getContext()->employee->id);
|
||||
foreach ($all_modules as $module) {
|
||||
if (stripos($module->name, $this->query) !== false || stripos($module->displayName, $this->query) !== false || stripos($module->description, $this->query) !== false) {
|
||||
if ((isset($module->name) && stripos($module->name, $this->query) !== false)
|
||||
|| (isset($module->displayName) && stripos($module->displayName, $this->query) !== false)
|
||||
|| (isset($module->description) && stripos($module->description, $this->query) !== false)
|
||||
) {
|
||||
$module->linkto = 'index.php?tab=AdminModules&tab_module='.$module->tab.'&module_name='.$module->name.'&anchor='.ucfirst($module->name).'&token='.Tools::getAdminTokenLite('AdminModules');
|
||||
$this->_list['modules'][] = $module;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user