From 6ae92aa169b449654b374cf6fb5be0d08ff61b8c Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 23 May 2013 12:23:44 -0400
Subject: [PATCH] Fix displaying contact with ID divisible by 100 in sql addressbook (#1489121)

---
 CHANGELOG                          |    1 +
 program/steps/addressbook/func.inc |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index f30df67..78272ff 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+- Fix displaying contact with ID divisible by 100 in sql addressbook (#1489121)
 - Fix browser warnings on PDF plugin detection (#1489118)
 - Fix fatal error when parsing UUencoded messages (#1489119)
 - Change Reply-All button label/title when mailing list is detected (#1488938)
diff --git a/program/steps/addressbook/func.inc b/program/steps/addressbook/func.inc
index 8faf76f..d416cc1 100644
--- a/program/steps/addressbook/func.inc
+++ b/program/steps/addressbook/func.inc
@@ -784,7 +784,7 @@
             }
         }
         else {
-            if (substr($id, -($got_source+1)) == "-$source") {
+            if (substr($id, -($got_source+1)) === "-$source") {
                 $id = substr($id, 0, -($got_source+1));
             }
             $result[$source][] = $id;

--
Gitblit v1.9.1