From f4d9a3fd1a104b391c38b21f3cbf90867deb24b2 Mon Sep 17 00:00:00 2001 From: real_nowhereman Date: Sun, 5 Apr 2009 19:48:33 +0000 Subject: [PATCH] fixing readmore minor bug --- fp-plugins/readmore/plugin.readmore.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fp-plugins/readmore/plugin.readmore.php b/fp-plugins/readmore/plugin.readmore.php index 45f0960..8b1441e 100755 --- a/fp-plugins/readmore/plugin.readmore.php +++ b/fp-plugins/readmore/plugin.readmore.php @@ -78,7 +78,7 @@ function plugin_readmore_main($string) { } - if ($q->single || isset($fp_params['entry'])) { + if (($q && $q->single) || isset($fp_params['entry'])) { $string = str_replace('[more]', "", $string); } @@ -88,4 +88,4 @@ function plugin_readmore_main($string) { add_filter('the_content', 'plugin_readmore_main', 1); -?> \ No newline at end of file +?>