Index: apc.php
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cacherouter/engines/apc.php,v
retrieving revision 1.6
diff -u -r1.6 apc.php
--- apc.php	26 Dec 2008 09:52:36 -0000	1.6
+++ apc.php	26 May 2009 04:53:48 -0000
@@ -119,14 +119,15 @@
   function delete($key) {
     // Remove from static array cache.
     parent::delete($this->key($key));
-    
+
     if (substr($key, -1, 1) == '*') {
       $key = substr($key, 0, strlen($key) - 1);
-      $lookup = apc_fetch($this->lookup);
-      foreach ($lookup as $k => $v) {
-        if (substr($k, 0, strlen($key) - 1) == $key) {
-          apc_delete($k);
-          unset($lookup[$k]);  
+      if (is_array($lookup = apc_fetch($this->lookup))) {
+        foreach ($lookup as $k => $v) {
+          if (substr($k, 0, strlen($key) - 1) == $key) {
+            apc_delete($k);
+            unset($lookup[$k]);
+          }
         }
       }
       if ($this->lock()) {

