Author: jwage
Date: 2008-08-27 04:14:06 +0100 (Wed, 27 Aug 2008)
New Revision: 4833

Modified:
   branches/1.0/lib/Doctrine/Cache/Apc.php
Log:
fixes #1356


Modified: branches/1.0/lib/Doctrine/Cache/Apc.php
===================================================================
--- branches/1.0/lib/Doctrine/Cache/Apc.php     2008-08-27 03:01:36 UTC (rev 
4832)
+++ branches/1.0/lib/Doctrine/Cache/Apc.php     2008-08-27 03:14:06 UTC (rev 
4833)
@@ -54,7 +54,9 @@
      */
     public function fetch($id, $testCacheValidity = true) 
     {
-        return apc_fetch($id);
+        $results = apc_fetch($id);
+        $results = (array) $results;
+        return $results[0];
     }
 
     /**


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" group.
 To post to this group, send email to [email protected]
 To unsubscribe from this group, send email to [EMAIL PROTECTED]
 For more options, visit this group at 
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to