This commit is contained in:
qronald
2017-06-14 14:26:07 -04:00
parent 42ac321495
commit e3c9106375

View File

@@ -283,7 +283,7 @@ class Menu
*/
public function DisableOptionId($id)
{
if (array_search($id, $this->Id)) {
if (array_search($id, $this->Id) !== FALSE) {
$this->Enabled[array_search($id, $this->Id)] = 0;
}
}