Check the missing array has content before processing it.

This commit is contained in:
markjcrane
2016-05-04 00:22:35 -06:00
parent 37e46ed2c9
commit 097a5d8ade
10 changed files with 63 additions and 58 deletions

View File

@@ -239,7 +239,7 @@ if (!class_exists('switch_settings')) {
}
//add the missing default settings
if (is_array($missing)) {
if (count($missing) > 0) {
$sql = "insert into v_default_settings (";
$sql .= "default_setting_uuid, ";
$sql .= "default_setting_category, ";