From 64ad871e888525ac2182c1bdfbca39da4f467abb Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 27 Jun 2014 23:45:22 -0700 Subject: [PATCH] Check page userclass before displaying {CPAGEBUTTON} --- e107_core/shortcodes/batch/page_shortcodes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/e107_core/shortcodes/batch/page_shortcodes.php b/e107_core/shortcodes/batch/page_shortcodes.php index 99c35efa1..dcbd71c32 100644 --- a/e107_core/shortcodes/batch/page_shortcodes.php +++ b/e107_core/shortcodes/batch/page_shortcodes.php @@ -244,6 +244,12 @@ class cpage_shortcodes extends e_shortcode function sc_cpagebutton($parm) { + + if(!check_class($this->var['page_class'])) + { + return ""; + } + $url = $this->sc_cpageurl(); if($parm == 'href' || !$url)