1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Fix for page-menu button class check.

This commit is contained in:
Cameron
2016-04-08 13:55:59 -07:00
parent 85d144cb8e
commit 7679a0afc6

View File

@@ -17,6 +17,8 @@ if (!defined('e107_INIT')) { exit; }
*/
class cpage_shortcodes extends e_shortcode
{
// var $var; // parsed DB values
@@ -247,7 +249,9 @@ class cpage_shortcodes extends e_shortcode
{
$tp = e107::getParser();
if(empty($this->var['menu_button_url']) && !check_class($this->var['page_class'])) // ignore when custom url used.
$pgClass = intval($this->var['page_class']);
if(empty($this->var['menu_button_url']) && !check_class($pgClass)) // ignore when custom url used.
{
return "<!-- Button Removed: Page check_class() returned false. -->";
}