Osclass Support Forums
Osclass theme support => Free themes => Elena Osclass Responsive Theme => Topic started by: dollar4all on March 18, 2020, 09:43:36 PM
-
hi,
PHP Warning: Invalid argument supplied for foreach() in /search.php on line 127
<?php foreach ($aCities as $city) {?>
thank you
-
@dollar4all
Try this:
<?php if(count($aCities) > 0 && is_array($aCities)) {?>
<?php foreach ($aCities as $city) {?>
<?php } ?>
<?php } ?>
-
hi, thank you
when i applied got this error
PHP Parse error: syntax error, unexpected '}', expecting end of file in /search.php on line 135
<?php } else { ?>
thank you