X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FStatus_network.php;h=5d01e72ccc9041c62f1313891963bf820fdfaa37;hb=6d5b6d98b5f68d784fee736518eaaae7a26a51f6;hp=c4f37ce1c67228b2827f7345d66f73fed258a265;hpb=2196d00b1b9a97b498897099c6993383c43b1d44;p=quix0rs-gnu-social.git diff --git a/classes/Status_network.php b/classes/Status_network.php index c4f37ce1c6..5d01e72ccc 100644 --- a/classes/Status_network.php +++ b/classes/Status_network.php @@ -167,18 +167,17 @@ class Status_network extends Safe_DataObject ' WHERE nickname = ' . $this->_quote($this->nickname); $orig->decache(); $result = $this->query($qry); - if ($result) { - $this->encache(); - } + $this->decache(); + return $result; } - + function delete() { $this->decache(); # while we still have the values! return parent::delete(); } - + /** * @param string $servername hostname * @param string $wildcard hostname suffix to match wildcard config @@ -314,7 +313,7 @@ class Status_network extends Safe_DataObject if (empty($result)) { return explode('|', $this->tags); } - + return $result; } @@ -332,7 +331,7 @@ class Status_network extends Safe_DataObject $snt->site_id = $this->site_id; $snt->tag = $tag; $snt->created = common_sql_now(); - + $id = $snt->insert(); if (!$id) { // TRANS: Exception thrown when a tag cannot be saved. @@ -357,7 +356,7 @@ class Status_network extends Safe_DataObject $tag->free(); } - + /** * Check if this site record has a particular meta-info tag attached. * @param string $tag