Просмотр исходного кода

Update healthChecks.php

Updating to !empty() based on sonarcloud's suggestion
Jesse Hickman 5 лет назад
Родитель
Сommit
911dc94828
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/plugins/healthChecks.php

+ 1 - 1
api/plugins/healthChecks.php

@@ -137,7 +137,7 @@ class HealthChecks extends Organizr
 				}
 			}
 			$limit = 30;
-			if (count($allItems) > 0){
+			if (!empty($allItems)){
 				$limit = count($allItems) * 20;
 			}
 			set_time_limit($limit);