Fix bug when adding imported new entry
authorHugo Villeneuve <hugo@hugovil.com>
Sat, 27 Feb 2021 21:35:19 +0000 (16:35 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 1 Mar 2021 01:21:11 +0000 (20:21 -0500)
include/address.class.php

index 8715055..69c1b6c 100644 (file)
@@ -109,7 +109,7 @@ function saveAddress($addr_array, $group_name = "") {
 
     $sql = "SELECT max(id) max_id from $table";
     $result = mysqli_query($db, $sql);
-    $rec = mysqli_fetch_array($db. $result);
+    $rec = mysqli_fetch_array($result);
     $id = $rec['max_id'];
 
     if(!isset($addr_array['id']) && $group_name) {