Fixes phone deduplication.
authorStéphane Jacob <sj@m4x.org>
Fri, 10 Dec 2010 14:29:10 +0000 (15:29 +0100)
committerStéphane Jacob <sj@m4x.org>
Fri, 10 Dec 2010 14:33:09 +0000 (15:33 +0100)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
upgrade/1.0.1/merge_issues.php

index ac0c495..30f715a 100755 (executable)
@@ -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;