git://git.iain.cx/iain
/
readifood.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Show map link from address.
[readifood.git]
/
lib
/
area.php
diff --git
a/lib/area.php
b/lib/area.php
index
51f57d3
..
2aa5e2d
100644
(file)
--- a/
lib/area.php
+++ b/
lib/area.php
@@
-53,10
+53,17
@@
return;
}
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 "<p>Show areas in\n";
echo "<select name=\"city_id\">\n";
form("noprint standout");
echo "<p>Show areas in\n";
echo "<select name=\"city_id\">\n";
- foreach ($c
iti
es as $city) {
+ foreach ($c
andidat
es as $city) {
option("city_id", sprintf("%s/%s", $city->getName(), $city->getId()), get_city_displayname($city));
}
echo "</select>\n";
option("city_id", sprintf("%s/%s", $city->getName(), $city->getId()), get_city_displayname($city));
}
echo "</select>\n";