projects
/
php-addressbook.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ff4872
)
Fix bug when adding imported new entry
author
Hugo Villeneuve
<hugo@hugovil.com>
Sat, 27 Feb 2021 21:35:19 +0000
(16:35 -0500)
committer
Hugo Villeneuve
<hugo@hugovil.com>
Mon, 1 Mar 2021 01:21:11 +0000
(20:21 -0500)
include/address.class.php
patch
|
blob
|
history
diff --git
a/include/address.class.php
b/include/address.class.php
index
8715055
..
69c1b6c
100644
(file)
--- a/
include/address.class.php
+++ b/
include/address.class.php
@@
-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) {