diff --git a/var/Typecho/Request.php b/var/Typecho/Request.php index 432388f7..1ad305c4 100644 --- a/var/Typecho/Request.php +++ b/var/Typecho/Request.php @@ -700,7 +700,7 @@ class Typecho_Request if ($params) { $validated = true; foreach ($params as $key => $val) { - $validated = empty($val) ? ($val != $this->get($key)) : ($val == $this->get($key)); + $validated = empty($val) ? $this->__isset($key) : ($val == $this->get($key)); if (!$validated) { break; diff --git a/var/Widget/Themes/Edit.php b/var/Widget/Themes/Edit.php index 6b534e85..70fd4500 100644 --- a/var/Widget/Themes/Edit.php +++ b/var/Widget/Themes/Edit.php @@ -134,7 +134,7 @@ class Widget_Themes_Edit extends Widget_Abstract_Options implements Widget_Inter $this->widget('Widget_Notice')->set(_t("外观设置已经保存"), NULL, 'success'); /** 转向原页 */ - $this->response->redirect(Typecho_Common::url('themes.php', $this->options->adminUrl)); + $this->response->redirect(Typecho_Common::url('options-theme.php', $this->options->adminUrl)); } /**