1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

Fixes #707 - {CPAGERELATED: types=page} issue.

This commit is contained in:
Cameron 2014-10-04 11:26:29 -07:00
parent 1495b56ab5
commit b900708568

View File

@ -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'];