Fixes wrong foreach use.
authorStéphane Jacob <sj@m4x.org>
Wed, 27 Oct 2010 08:27:14 +0000 (10:27 +0200)
committerStéphane Jacob <sj@m4x.org>
Wed, 27 Oct 2010 08:27:14 +0000 (10:27 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/profile/page.inc.php

index 252b3a6..d1a1cfc 100644 (file)
@@ -397,7 +397,7 @@ abstract class ProfilePage implements PlWizardPage
             // XXX: removes this code once all merge related issues have been fixed.
             static $issues = array(0 => array('name', 'promo', 'phone', 'education'), 1 => array('address'), 2 => array('job'));
             if (isset($issues[Post::i('valid_page')])) {
-                foreach ($issue as $issues[Post::i('valid_page')]) {
+                foreach ($issues[Post::i('valid_page')] as $issue) {
                     XDB::execute("UPDATE  profile_merge_issues
                                      SET  issues = REPLACE(issues, {?}, '')
                                    WHERE  pid = {?}",