]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Status_network_tag.php
Fix for failover error in status_network_tag caching; when no tags present in table...
[quix0rs-gnu-social.git] / 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);
+                }
             }
         }