Skip to content

Commit a37aea8

Browse files
committed
added type check based on input from @scrutinizer
1 parent de07fb1 commit a37aea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ajax/fetch_sites.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
return;
146146
}
147147

148-
if (!empty($sites_array)) {
148+
if (!empty($sites_array) && is_array($sites_array)) {
149149
if ($debug) {
150150
error_log('DEBUG: ' . count($sites_array) . ' sites collected');
151151
}

0 commit comments

Comments
 (0)