Skip to content
Permalink
Browse files

Fix to corrupt data in smart cache

  • Loading branch information...
chrisgraham committed Jun 26, 2019
1 parent 6fc7639 commit 60bf1e650180649135ee84f85ebc311657dc146b
Showing with 4 additions and 0 deletions.
  1. +4 −0 sources/caches.php
@@ -274,6 +274,10 @@ public function append($key, $value, $value_2 = true)
$this->data[$key] = array();
}
if ((isset($this->data[$key])) && (!is_array($this->data[$key]))) { // Fix to corrupted data
$this->data[$key] = array();
}
if ((!isset($this->data[$key][$value])) && !array_key_exists($value, $this->data[$key]) || $this->data[$key][$value] !== $value_2) {
if ($this->paused) {
return true;

0 comments on commit 60bf1e6

Please sign in to comment.
You can’t perform that action at this time.