diff --git a/e107_plugins/page/e_related.php b/e107_plugins/page/e_related.php index 15f900310..162b77e71 100644 --- a/e107_plugins/page/e_related.php +++ b/e107_plugins/page/e_related.php @@ -54,7 +54,7 @@ class page_related // replace 'e_' with 'plugin-folder_' $items = array(); - $tag_regexp = "'(^|, )(".str_replace(",", "|", $tags).")(,|$)'"; + $tag_regexp = "'(^|,)(".str_replace(",", "|", $tags).")(,|$)'"; $query = "SELECT * FROM #page WHERE page_id != ".$parm['current']." AND page_class REGEXP '".e_CLASS_REGEXP."' AND page_metakeys REGEXP ".$tag_regexp." ORDER BY page_datestamp DESC LIMIT ".$parm['limit'];