Cast to bool for enableCache
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 12 Jun 2018 17:43:59 +0000 (13:43 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 12 Jun 2018 17:43:59 +0000 (13:43 -0400)
Need boolean value of the setting.

setup/shortcodes.php

index a40b54e..03753f7 100644 (file)
@@ -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(