Skip to content

Commit 6dd5681

Browse files
committed
Merge branch 'patch/php7.2-compatibility'
2 parents b89a6cd + 589f1a7 commit 6dd5681

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Stash
22

3-
![Release](https://img.shields.io/badge/release-3.0.6-brightgreen.svg)
3+
![Release](https://img.shields.io/badge/release-3.0.8-brightgreen.svg)
44

55
Stash for ExpressionEngine 3 and 4.
66

system/user/addons/stash/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
if (! defined('STASH_VER'))
33
{
44
define('STASH_NAME', 'Stash');
5-
define('STASH_VER', '3.0.6');
5+
define('STASH_VER', '3.0.8');
66
define('STASH_AUTHOR', 'Mark Croxton, Hallmark Design');
77
define('STASH_AUTHOR_URL', 'http://hallmark-design.co.uk');
88
define('STASH_DOCS', 'http://github.com/croxton/Stash/');

system/user/addons/stash/mod.stash.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public function set($params=array(), $value='', $type='variable', $scope='user')
426426

427427
if ( !! $name)
428428
{
429-
if ($context !== NULL && count( explode(':', $name) == 1 ) )
429+
if ($context !== NULL && count( explode(':', $name)) == 1 )
430430
{
431431
$name = $context . ':' . $name;
432432
ee()->TMPL->tagparams['context'] = NULL;
@@ -848,7 +848,7 @@ public function get($params='', $type='variable', $scope='user')
848848
$context = ee()->TMPL->fetch_param('context', NULL);
849849
$global_name = $name;
850850

851-
if ($context !== NULL && count( explode(':', $name) == 1 ) )
851+
if ($context !== NULL && count( explode(':', $name)) == 1 )
852852
{
853853
$name = $context . ':' . $name;
854854
ee()->TMPL->tagparams['context'] = NULL;
@@ -1518,7 +1518,7 @@ public function set_list()
15181518

15191519
if ( !! $name)
15201520
{
1521-
if ($context !== NULL && count( explode(':', $name) == 1 ) )
1521+
if ($context !== NULL && count( explode(':', $name)) == 1 )
15221522
{
15231523
$name = $context . ':' . $name;
15241524
}
@@ -1728,7 +1728,7 @@ private function _update_list($append=TRUE)
17281728
if ( $this->not_empty(ee()->TMPL->tagdata))
17291729
{
17301730
// does the list really exist?
1731-
if ($context !== NULL && count( explode(':', $name) == 1 ) )
1731+
if ($context !== NULL && count( explode(':', $name)) == 1 )
17321732
{
17331733
$name = $context . ':' . $name;
17341734
}
@@ -2249,7 +2249,7 @@ public function get_bundle($set=TRUE)
22492249

22502250
// get bundle var
22512251
$bundle_entry_key = $bundle;
2252-
if ($bundle !== NULL && count( explode(':', $bundle) == 1 ) )
2252+
if ($bundle !== NULL && count( explode(':', $bundle)) == 1 )
22532253
{
22542254
$bundle_entry_key = $context . ':' . $bundle;
22552255
}
@@ -3179,7 +3179,7 @@ public function destroy($params=array(), $type='variable', $scope='user')
31793179
else
31803180
{
31813181
// a named variable
3182-
if ($context !== NULL && count( explode(':', $name) == 1 ))
3182+
if ($context !== NULL && count( explode(':', $name)) == 1 )
31833183
{
31843184
$name = $context . ':' . $name;
31853185
}

0 commit comments

Comments
 (0)