Check the missing array has content before processing it.

This commit is contained in:
markjcrane
2016-05-04 00:22:35 -06:00
parent 7aa61e2d53
commit 3abaff004c
10 changed files with 63 additions and 58 deletions

View File

@@ -70,7 +70,7 @@ if ($domains_processed == 1) {
}
//add the missing default settings
foreach ($missing as $row) {
if (count($missing) > 0) foreach ($missing as $row) {
//add the default settings
$orm = new orm;
$orm->name('default_settings');