diff options
author | Brion Vibber <brion@pobox.com> | 2010-08-26 13:52:03 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-08-26 13:52:03 -0700 |
commit | 8f06e3b2819936d1a9fe30b1bc44759bdcd56992 (patch) | |
tree | 2ec01e634d632eb329bdf3d976927a95f13a69fe | |
parent | 63fd2332f0469174be6476eb7455519ebaf30249 (diff) |
Fix for failover error in status_network_tag caching; when no tags present in table we would return an array with one empty element instead of no elements when getting the cached data.
-rw-r--r-- | classes/Status_network_tag.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/classes/Status_network_tag.php b/classes/Status_network_tag.php index 975392c76..7dab23289 100644 --- a/classes/Status_network_tag.php +++ b/classes/Status_network_tag.php @@ -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); + } } } |