fixing readmore minor bug

This commit is contained in:
real_nowhereman 2009-04-05 19:48:33 +00:00
parent f95e233986
commit f4d9a3fd1a

View File

@ -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]', "<a id=\"readmore-{$fp_params['entry']}\"></a>", $string);
}