diff options
Diffstat (limited to 'includes/cache.inc')
-rw-r--r-- | includes/cache.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/cache.inc b/includes/cache.inc index e21346a9e..518ca313e 100644 --- a/includes/cache.inc +++ b/includes/cache.inc @@ -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; } |