From f9aba3058f2868e77e29912c062b16cab50c6bba Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Fri, 10 Dec 2010 15:29:10 +0100 Subject: [PATCH] Fixes phone deduplication. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- upgrade/1.0.1/merge_issues.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upgrade/1.0.1/merge_issues.php b/upgrade/1.0.1/merge_issues.php index ac0c495..30f715a 100755 --- a/upgrade/1.0.1/merge_issues.php +++ b/upgrade/1.0.1/merge_issues.php @@ -106,7 +106,7 @@ $phones = array(); $duplicates = array(); foreach ($pids as $pid) { $count = 0; - Phone::iterate(array($pid), array(Phone::LINK_PROFILE), array(0)); + $it = Phone::iterate(array($pid), array(Phone::LINK_PROFILE), array(0)); while ($item = $it->next()) { $phones[] = $item; ++$count; -- 2.1.4