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
+1 -1
View File
@@ -77,7 +77,7 @@
$default_settings = $prep_statement->fetchAll(PDO::FETCH_NAMED);
$x = 0;
foreach ($array as $row) {
if (isset($array)) foreach ($array as $row) {
$found = false;
foreach ($default_settings as $field) {
if ($row['default_setting_subcategory'] == $field['default_setting_subcategory']) {