Explorar o código

Update healthChecks.php

Updating to !empty() based on sonarcloud's suggestion
Jesse Hickman %!s(int64=5) %!d(string=hai) anos
pai
achega
911dc94828
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);