1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Check page userclass before displaying {CPAGEBUTTON}

This commit is contained in:
Cameron
2014-06-27 23:45:22 -07:00
parent 2106c37896
commit 64ad871e88

View File

@@ -244,6 +244,12 @@ class cpage_shortcodes extends e_shortcode
function sc_cpagebutton($parm)
{
if(!check_class($this->var['page_class']))
{
return "<!-- Button Removed: Page check_class() returned false. -->";
}
$url = $this->sc_cpageurl();
if($parm == 'href' || !$url)