From: Stéphane Jacob Date: Wed, 27 Oct 2010 08:27:14 +0000 (+0200) Subject: Fixes wrong foreach use. X-Git-Tag: xorg/1.0.2~184 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=aadf2259088c319e8f0994413759d2c096ff51d7;p=platal.git Fixes wrong foreach use. Signed-off-by: Stéphane Jacob --- 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 = {?}",