diff --git a/inc/entity.class.php b/inc/entity.class.php index 68f612a..717827b 100644 --- a/inc/entity.class.php +++ b/inc/entity.class.php @@ -215,9 +215,10 @@ public static function showForItemtype(Entity $entity, $itemtype = 'Entity') $out .= "
"; $number = self::countForItem($entity); + $rand = mt_rand(); + if ($number) { if ($canedit) { - $rand = mt_rand(); $out .= Html::getOpenMassiveActionsForm('mass' . __CLASS__ . $rand); $specific_actions = [ diff --git a/phpstan.neon b/phpstan.neon index 0d4f38f..7d28e22 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -1,7 +1,7 @@ parameters: parallel: maximumNumberOfProcesses: 2 - level: 0 + level: 1 bootstrapFiles: - ../../inc/based_config.php - setup.php