FIX wrong test

This commit is contained in:
Regis Houssin 2023-03-29 15:09:43 +02:00
parent 898a4bad15
commit 48333a7205

View File

@ -190,7 +190,7 @@ class Menubase
if (!isset($this->enabled)) {
$this->enabled = '1';
}
$this->entity = (isset($this->entity) ? (int) $this->entity : $conf->entity);
$this->entity = (isset($this->entity) && (int) $this->entity >= 0 ? (int) $this->entity : $conf->entity);
$this->menu_handler = trim((string) $this->menu_handler);
$this->module = trim((string) $this->module);
$this->type = trim((string) $this->type);