projects
/
WP-Plugins
/
glm-member-db.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f72066
)
Cast to bool for enableCache
author
Steve Sutton
<steve@gaslightmedia.com>
Tue, 12 Jun 2018 17:43:59 +0000
(13:43 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Tue, 12 Jun 2018 17:43:59 +0000
(13:43 -0400)
Need boolean value of the setting.
setup/shortcodes.php
patch
|
blob
|
history
diff --git
a/setup/shortcodes.php
b/setup/shortcodes.php
index
a40b54e
..
03753f7
100644
(file)
--- 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(