Fixed: update_plugins_cache() is now tolerant of write errors
authorDan
Sun, 21 Dec 2008 04:24:52 -0500
changeset 769 1946d845bb25
parent 768 111fd7a4415c
child 770 62fed244fa1c
Fixed: update_plugins_cache() is now tolerant of write errors
includes/plugins.php
--- a/includes/plugins.php	Sun Dec 21 04:23:47 2008 -0500
+++ b/includes/plugins.php	Sun Dec 21 04:24:52 2008 -0500
@@ -462,7 +462,15 @@
   function update_plugins_cache($plugin_info)
   {
     global $cache;
-    return $cache->store('plugins', $plugin_info, -1);
+    try
+    {
+      $result = $cache->store('plugins', $plugin_info, -1);
+    }
+    catch ( Exception $e )
+    {
+      return false;
+    }
+    return $result;
   }
   
   /**