From: Steve Sutton Date: Tue, 12 Jun 2018 17:43:59 +0000 (-0400) Subject: Cast to bool for enableCache X-Git-Tag: v2.10.32^2~6 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=315f9ac0246dd7cee4911ce57787addaa6e71967;p=WP-Plugins%2Fglm-member-db.git Cast to bool for enableCache Need boolean value of the setting. --- diff --git a/setup/shortcodes.php b/setup/shortcodes.php index a40b54ef..03753f79 100644 --- a/setup/shortcodes.php +++ b/setup/shortcodes.php @@ -68,7 +68,7 @@ //$config = $GLOBALS['config']; if ( isset( $config['settings'] ) && $config['settings']['enable_members'] ) { - $enableCache = $config['settings']['enable_caching']; + $enableCache = (bool)$config['settings']['enable_caching']; $glmMembersShortcodes = array( 'glm-members-list' => array(