Typo.
[readifood.git] / lib / contact.php
index 8013989..fdbd169 100644 (file)
@@ -6,7 +6,7 @@
     show_new_contact_form($city_id);
   }
   else if (isset($_POST['add_contact'])) {
-    set_last_selected("area_id", $area_id);
+    set_last_selected("area_id", $_POST['area_id']);
     $id = add_contact($displayname);
     if ($id !== false) {
       echo "<p>Added contact.</p>\n";