Skip to content
Snippets Groups Projects
Commit b006306f authored by Daniel Kudwien's avatar Daniel Kudwien
Browse files

#268838 by sun: Fixed PHP warning if no buttons are enabled for a profile.

parent 68344d70
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 6.x-0.x, xxxx-xx-xx
---------------------------
#268838 by sun: Fixed PHP warning if no buttons are enabled for a profile.
#268838 by sun: Ported to Drupal 6.x.
#152046 by sun: Added hook_wysiwyg_plugin().
#268562 by sun: Code clean-up.
......
......@@ -426,7 +426,7 @@ function wysiwyg_editor_config($profile, $theme) {
$init['theme_advanced_resizing'] = $settings['resizing'] ? $settings['resizing'] : TRUE;
$init['theme_advanced_blockformats'] = $settings['block_formats'] ? $settings['block_formats'] : 'p,address,pre,h2,h3,h4,h5,h6';
if (is_array($settings['buttons'])) {
if (!empty($settings['buttons']) && is_array($settings['buttons'])) {
$init['buttons'] = $init['extensions'] = $init['extended_valid_elements'] = array();
// Find the enabled buttons and the button row they belong on.
// Also map the plugin metadata for each button.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment