X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=lib%2Farea.php;h=2aa5e2dc0d589cfb9aa079b229d33b593e9fd69d;hb=0925aeead950582ca1136feeb597730086bec498;hp=51f57d39ad9d38ad4abdec426be6196a4d13ed0f;hpb=6bd4ad3daf2cc870d96a3fed9ea9caf6798d2b78;p=readifood.git diff --git a/lib/area.php b/lib/area.php index 51f57d3..2aa5e2d 100644 --- a/lib/area.php +++ b/lib/area.php @@ -53,10 +53,17 @@ return; } + $candidates = array(); + foreach ($cities as $city) { + if (! count(get_city_areas($city->getId()))) continue; + $candidates[] = $city; + } + if (! count($candidates)) return; + form("noprint standout"); echo "

Show areas in\n"; echo "\n";