Skip to content

Commit

Permalink
Revert ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Narloch committed Aug 18, 2016
1 parent f5df02a commit 8c947c5
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions libraries/joomla/cache/storage/memcache.php
Expand Up @@ -177,7 +177,11 @@ public function store($id, $group, $data)
}

$index = static::$_db->get($this->_hash . '-index');
$index = $index ? $index : array();

if ($index === false)
{
$index = array();
}

$tmparr = new stdClass;
$tmparr->name = $cache_id;
Expand Down Expand Up @@ -212,7 +216,11 @@ public function remove($id, $group)
}

$index = static::$_db->get($this->_hash . '-index');
$index = $index ? $index : array();

if ($index === false)
{
$index = array();
}

foreach ($index as $key => $value)
{
Expand Down

0 comments on commit 8c947c5

Please sign in to comment.