From 55fb9e01894032f909b6cdf6f851496a9a5c3add Mon Sep 17 00:00:00 2001 From: joyqi Date: Mon, 2 Dec 2013 10:21:00 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E7=BB=ADfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- var/Typecho/Common.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/var/Typecho/Common.php b/var/Typecho/Common.php index 0af97ab8..8ef4dd4a 100644 --- a/var/Typecho/Common.php +++ b/var/Typecho/Common.php @@ -123,10 +123,14 @@ class Typecho_Common */ public static function __filterAttrs($matches) { + if (!isset($matches[2])) { + return $matches[0]; + } + $str = trim($matches[2]); if (empty($str)) { - return ''; + return $matches[0]; } $attrs = self::__parseAttrs($str);