Skip to content

Instantly share code, notes, and snippets.

@pepebe
Created October 21, 2012 21:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pepebe/3928666 to your computer and use it in GitHub Desktop.
Save pepebe/3928666 to your computer and use it in GitHub Desktop.
MODx: Login - Bugfix for broken checkboxes in updateprofile.php
<?php
/*
Bugfix for broken checkboxes in updateprofile.php
file: core/components/login/controllers/web/UpdateProfile.php
insert just before line 156
*/
/* ppb: bugfix: http://tracker.modx.com/issues/8795 */
foreach($placeholders as $index => $placeholder){
if(is_array($placeholder)) $placeholders[$index] = implode(',',$placeholder);
}
/* End bugfix */
/*156*/ $this->modx->toPlaceholders($placeholders,$this->getProperty('placeholderPrefix'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment