Commit a6e59377 authored by sun's avatar sun

#293425 by sun: Fixed foreach warning during upgrade from TinyMCE module.

parent 34a223be
......@@ -6,7 +6,8 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 6.x-x.x, xxxx-xx-xx
---------------------------
#292517 by sun: Fixed SQL error during upgrade from TinyMCE.
#293425 by sun: Fixed foreach warning during upgrade from TinyMCE module.
#292517 by sun: Fixed SQL error during upgrade from TinyMCE module.
#286470 by chayner, sun: Fixed wrong editorBasePath in editor configuration.
#227687 by sun: Fixed improperly capitalized package name.
#288028 by Matthew Davidson: Fixed outdated check for PHP input filter.
......
......@@ -103,7 +103,7 @@ function wysiwyg_editor_update_5001() {
while ($profile = db_fetch_array($profiles)) {
$settings = unserialize($profile['settings']);
if (isset($settings['form_id'])) {
$old_buttons = $settings['buttons'];
$old_buttons = (isset($settings['buttons']) ? $settings['buttons'] : array());
$settings['buttons'] = array();
$plugin_count = 0;
foreach ($old_buttons as $old_button => $enabled) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment