forked from GNUsocial/gnu-social
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:
parent
63fd2332f0
commit
8f06e3b281
@ -79,7 +79,11 @@ class Status_network_tag extends Safe_DataObject
|
|||||||
if (Status_network::$cache) {
|
if (Status_network::$cache) {
|
||||||
$packed = Status_network::$cache->get($key);
|
$packed = Status_network::$cache->get($key);
|
||||||
if (is_string($packed)) {
|
if (is_string($packed)) {
|
||||||
return explode('|', $packed);
|
if ($packed == '') {
|
||||||
|
return array();
|
||||||
|
} else {
|
||||||
|
return explode('|', $packed);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user