Check the missing array has content before processing it.
This commit is contained in:
@@ -287,7 +287,7 @@
|
||||
}
|
||||
|
||||
//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');
|
||||
|
||||
Reference in New Issue
Block a user