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.

This commit is contained in:
Brion Vibber 2010-08-26 13:52:03 -07:00
parent 63fd2332f0
commit 8f06e3b281

View 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);
}
}
}