Create a new stdClass object before assigning properties

develop
Sven Slootweg 12 years ago
parent cc25349d30
commit 4bbeffbd57

@ -62,6 +62,8 @@ class CachedPDO extends PDO
$parameter_hash = md5(serialize($parameters)); $parameter_hash = md5(serialize($parameters));
$cache_hash = $query_hash . $parameter_hash; $cache_hash = $query_hash . $parameter_hash;
$return_object = new stdClass;
if($result = mc_get($cache_hash)) if($result = mc_get($cache_hash))
{ {
$return_object->source = "memcache"; $return_object->source = "memcache";

Loading…
Cancel
Save