Skip to content

Commit

Permalink
fix(core): prevent uasort(): Argument 1 ($array) must be of type arra…
Browse files Browse the repository at this point in the history
…y, null given
  • Loading branch information
stonebuzz authored and cedric-anne committed Sep 15, 2023
1 parent 37e2ec3 commit 34f0bc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/object.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1235,6 +1235,7 @@ static function getMenuContent() {
}
}

$menu = [];
if ($type['plugin_genericobject_typefamilies_id'] > 0
&& (!isset($_GET['itemtype'])
|| !preg_match("/itemtype=".$_GET['itemtype']."/", $_GET['itemtype']))) {
Expand Down

0 comments on commit 34f0bc5

Please sign in to comment.