Browse Source

Update healthChecks.php

Updating to !empty() based on sonarcloud's suggestion
Jesse Hickman 4 years ago
parent
commit
911dc94828
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/plugins/healthChecks.php

+ 1 - 1
api/plugins/healthChecks.php

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