Skip to content

Commit f8dcf29

Browse files
committed
#112 Warning: Illegal string offset 'value'
1 parent 52512ce commit f8dcf29

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

phpfastcache/3.0.0/abstract.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ public function get($keyword, $option = array()) {
5858
if($object == null) {
5959
return null;
6060
}
61-
return isset($option['all_keys']) && $option['all_keys'] ? $object : $object['value'];
61+
62+
$value = isset( $object['value'] ) ? $object['value'] : null;
63+
return isset( $option['all_keys'] ) && $option['all_keys'] ? $object : $value;
6264
}
6365

6466

0 commit comments

Comments
 (0)