Typo. 2014-04-14
authorIain Patterson <me@iain.cx>
Mon, 14 Apr 2014 13:25:08 +0000 (09:25 -0400)
committerIain Patterson <me@iain.cx>
Mon, 14 Apr 2014 13:25:08 +0000 (09:25 -0400)
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";