Skip to content
Snippets Groups Projects
Commit 25598ec5 authored by dczepierga's avatar dczepierga
Browse files

[#1872064] by dczepierga: Undefined index: loadPlugins in...

[#1872064] by dczepierga: Undefined index: loadPlugins in ckeditor_modules_disabled() and ckeditor_modules_uninstalled()
parent 8358c526
No related branches found
No related tags found
No related merge requests found
2012-12-27
New stable release 7.x-1.x
Bug fixes:
[#1872064] by dczepierga: Undefined index: loadPlugins in ckeditor_modules_disabled() and ckeditor_modules_uninstalled()
2012-12-22
New stable release 7.x-1.12
......
......@@ -638,6 +638,7 @@ function ckeditor_modules_disabled($modules) {
foreach ($profiles_list AS $_profile => $_inputs) {
$changed = FALSE;
$profile = ckeditor_profile_load($_profile);
if (!isset($profile->settings['loadPlugins'])) continue;
foreach (array_keys((array) $profile->settings['loadPlugins']) as $plugin_name) {
if (!array_key_exists($plugin_name, $plugins_list)) {
$profile->settings['loadPlugins'][$plugin_name]['active'] = 0;
......@@ -667,6 +668,7 @@ function ckeditor_modules_uninstalled($modules) {
foreach ($profiles_list AS $_profile => $_inputs) {
$changed = FALSE;
$profile = ckeditor_profile_load($_profile);
if (!isset($profile->settings['loadPlugins'])) continue;
foreach (array_keys((array) $profile->settings['loadPlugins']) as $plugin_name) {
if (!array_key_exists($plugin_name, $plugins_list)) {
unset($profile->settings['loadPlugins'][$plugin_name]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment