Skip to content

Commit

Permalink
fix(core): prevent uasort(): Argument #1 () must be of type array, nu…
Browse files Browse the repository at this point in the history
…ll given
  • Loading branch information
stonebuzz authored and cedric-anne committed Sep 15, 2023
1 parent 8999b64 commit 1eaca85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/object.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,7 @@ static function processMassiveActionsForOneItemtype(MassiveAction $ma, CommonDBT

static function getMenuContent() {
$types = PluginGenericobjectType::getTypes();
$menu = [];
foreach ($types as $type) {

$itemtype = $type['itemtype'];
Expand Down Expand Up @@ -1235,7 +1236,6 @@ 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 1eaca85

Please sign in to comment.