]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix for failover error in status_network_tag caching; when no tags present in table...
authorBrion Vibber <brion@pobox.com>
Thu, 26 Aug 2010 20:52:03 +0000 (13:52 -0700)
committerBrion Vibber <brion@pobox.com>
Thu, 26 Aug 2010 20:52:03 +0000 (13:52 -0700)
classes/Status_network_tag.php

index 975392c76163a0afb5c37440c43e510be589e216..7dab232897bcb3f64601c980c52bc338788314d3 100644 (file)
@@ -79,7 +79,11 @@ class Status_network_tag extends Safe_DataObject
         if (Status_network::$cache) {
             $packed = Status_network::$cache->get($key);
             if (is_string($packed)) {
-                return explode('|', $packed);
+                if ($packed == '') {
+                    return array();
+                } else {
+                    return explode('|', $packed);
+                }
             }
         }