diff --git a/e107_admin/image.php b/e107_admin/image.php index 320af623e..6fa357cd3 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -1171,7 +1171,7 @@ class media_admin_ui extends e_admin_ui $this->batchDelete(); } - if(varset($_POST['update_options'])) + if(!empty($_POST['update_options'])) { $this->updateSettings(); } diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index 271bcae5a..32c0e3c46 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -5093,7 +5093,7 @@ var_dump($select_options);*/ $options['pk'] = $pid; } - $title = varset($options['title'], (LAN_EDIT . ' ' . $fieldName)); + $title = varset($options['title'], (LAN_EDIT . ' ' . defset($fieldName,$fieldName))); $class = varset($options['class']); unset($options['title']); diff --git a/e107_handlers/pref_class.php b/e107_handlers/pref_class.php index addc41471..0ead704e1 100644 --- a/e107_handlers/pref_class.php +++ b/e107_handlers/pref_class.php @@ -619,7 +619,8 @@ class e_pref extends e_front_model e107::includeLan(e_LANGUAGEDIR . e_LANGUAGE . '/admin/lan_admin.php'); $log->addSuccess(LAN_SETSAVED, ($session_messages === null || $session_messages === true)); - + // $debug = debug_backtrace(null,2); + // e107::getMessage()->addDebug(print_a($debug,true)); $uid = USERID; if(empty($uid)) // Log extra details of any pref changes made by a non-user.