- Patch #277440 by R.Muilwijk: fixed bug caching integers and doubles. Fixes 2 of the 3 failing cache tests.
parent
53c395c33e
commit
bd91faf66c
|
@ -102,7 +102,7 @@ function cache_get($cid, $table = 'cache') {
|
|||
*/
|
||||
function cache_set($cid, $data, $table = 'cache', $expire = CACHE_PERMANENT, $headers = NULL) {
|
||||
$serialized = 0;
|
||||
if (is_object($data) || is_array($data)) {
|
||||
if (!is_string($data)) {
|
||||
$data = serialize($data);
|
||||
$serialized = 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue