diff --git a/README.md b/README.md index 92ac3ed..d243912 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Stash -![Release](https://img.shields.io/badge/release-3.0.6-brightgreen.svg) +![Release](https://img.shields.io/badge/release-3.0.8-brightgreen.svg) Stash for ExpressionEngine 3 and 4. diff --git a/system/user/addons/stash/config.php b/system/user/addons/stash/config.php index 2cebd9b..7f07489 100755 --- a/system/user/addons/stash/config.php +++ b/system/user/addons/stash/config.php @@ -2,7 +2,7 @@ if (! defined('STASH_VER')) { define('STASH_NAME', 'Stash'); - define('STASH_VER', '3.0.6'); + define('STASH_VER', '3.0.8'); define('STASH_AUTHOR', 'Mark Croxton, Hallmark Design'); define('STASH_AUTHOR_URL', 'http://hallmark-design.co.uk'); define('STASH_DOCS', 'http://github.com/croxton/Stash/'); diff --git a/system/user/addons/stash/mod.stash.php b/system/user/addons/stash/mod.stash.php index 6ae8dd0..16a2052 100755 --- a/system/user/addons/stash/mod.stash.php +++ b/system/user/addons/stash/mod.stash.php @@ -426,7 +426,7 @@ public function set($params=array(), $value='', $type='variable', $scope='user') if ( !! $name) { - if ($context !== NULL && count( explode(':', $name) == 1 ) ) + if ($context !== NULL && count( explode(':', $name)) == 1 ) { $name = $context . ':' . $name; ee()->TMPL->tagparams['context'] = NULL; @@ -848,7 +848,7 @@ public function get($params='', $type='variable', $scope='user') $context = ee()->TMPL->fetch_param('context', NULL); $global_name = $name; - if ($context !== NULL && count( explode(':', $name) == 1 ) ) + if ($context !== NULL && count( explode(':', $name)) == 1 ) { $name = $context . ':' . $name; ee()->TMPL->tagparams['context'] = NULL; @@ -1518,7 +1518,7 @@ public function set_list() if ( !! $name) { - if ($context !== NULL && count( explode(':', $name) == 1 ) ) + if ($context !== NULL && count( explode(':', $name)) == 1 ) { $name = $context . ':' . $name; } @@ -1728,7 +1728,7 @@ private function _update_list($append=TRUE) if ( $this->not_empty(ee()->TMPL->tagdata)) { // does the list really exist? - if ($context !== NULL && count( explode(':', $name) == 1 ) ) + if ($context !== NULL && count( explode(':', $name)) == 1 ) { $name = $context . ':' . $name; } @@ -2249,7 +2249,7 @@ public function get_bundle($set=TRUE) // get bundle var $bundle_entry_key = $bundle; - if ($bundle !== NULL && count( explode(':', $bundle) == 1 ) ) + if ($bundle !== NULL && count( explode(':', $bundle)) == 1 ) { $bundle_entry_key = $context . ':' . $bundle; } @@ -3179,7 +3179,7 @@ public function destroy($params=array(), $type='variable', $scope='user') else { // a named variable - if ($context !== NULL && count( explode(':', $name) == 1 )) + if ($context !== NULL && count( explode(':', $name)) == 1 ) { $name = $context . ':' . $name; }