]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Profile_tag.php
Memcached_DataObject extensions got their update functions more consistent
[quix0rs-gnu-social.git] / classes / Profile_tag.php
index 39095aeddedeb07f47bbac8c419e0599e625fdb6..5256aa13c8029805c4041be53b1f355858027f9d 100644 (file)
@@ -282,11 +282,11 @@ class Profile_tag extends Managed_DataObject
                                        $tags->escape($orig->tag),
                                        $tags->escape($orig->tagger)));
 
-        if (!$result) {
+        if ($result === false) {
             common_log_db_error($tags, 'UPDATE', __FILE__);
-            return false;
+            throw new Exception('Could not move Profile_tag, see db log for details.');
         }
-        return true;
+        return $result;
     }
 
     static function blowCaches($tagger, $tagged) {