Skip to content

Commit 1eaca85

Browse files
stonebuzzcedric-anne
authored andcommitted
fix(core): prevent uasort(): Argument #1 () must be of type array, null given
1 parent 8999b64 commit 1eaca85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/object.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,7 @@ static function processMassiveActionsForOneItemtype(MassiveAction $ma, CommonDBT
12081208

12091209
static function getMenuContent() {
12101210
$types = PluginGenericobjectType::getTypes();
1211+
$menu = [];
12111212
foreach ($types as $type) {
12121213

12131214
$itemtype = $type['itemtype'];
@@ -1235,7 +1236,6 @@ static function getMenuContent() {
12351236
}
12361237
}
12371238

1238-
$menu = [];
12391239
if ($type['plugin_genericobject_typefamilies_id'] > 0
12401240
&& (!isset($_GET['itemtype'])
12411241
|| !preg_match("/itemtype=".$_GET['itemtype']."/", $_GET['itemtype']))) {

0 commit comments

Comments
 (0)