]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
backwards compatibility for old tags format in hasTag
authorJames Walker <walkah@walkah.net>
Wed, 28 Jul 2010 16:13:53 +0000 (12:13 -0400)
committerJames Walker <walkah@walkah.net>
Wed, 28 Jul 2010 16:13:53 +0000 (12:13 -0400)
classes/Status_network.php

index 339f4c813b5f6d030bd59cf69c550d8ca3cb1435..a0f3ba5f785525f7435237f7353898c2b20ed5ff 100644 (file)
@@ -318,6 +318,11 @@ class Status_network extends Safe_DataObject
             }
         }
 
+        // XXX : for backwards compatibility
+        if (empty($result)) {
+            return explode('|', $this->tags);
+        }
+        
         return $result;
     }