Explorar el Código

Update healthChecks.php

Updating to !empty() based on sonarcloud's suggestion
Jesse Hickman hace 5 años
padre
commit
911dc94828
Se han modificado 1 ficheros con 1 adiciones y 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);