From aadf2259088c319e8f0994413759d2c096ff51d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Wed, 27 Oct 2010 10:27:14 +0200 Subject: [PATCH] Fixes wrong foreach use. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- modules/profile/page.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/profile/page.inc.php b/modules/profile/page.inc.php index 252b3a6..d1a1cfc 100644 --- a/modules/profile/page.inc.php +++ b/modules/profile/page.inc.php @@ -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 = {?}", -- 2.1.4