]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/popularity.php
Add geopoint (GeoJSON) extension to AS JSON output
[quix0rs-gnu-social.git] / lib / popularity.php
index b6987138b559e6cce4141ccf187e74005bf5d29b..7ab259a391b28433ea84c40bb4d53ef7bfcb5451 100644 (file)
@@ -53,12 +53,12 @@ class Popularity
     {
         // @fixme there should be a common func for this
         if (common_config('db', 'type') == 'pgsql') {
-            if (!empty($this->out->tag)) {
-                $tag = pg_escape_string($this->out->tag);
+            if (!empty($this->tag)) {
+                $tag = pg_escape_string($this->tag);
             }
         } else {
-            if (!empty($this->out->tag)) {
-                 $tag = mysql_escape_string($this->out->tag);
+            if (!empty($this->tag)) {
+                 $tag = mysql_escape_string($this->tag);
             }
         }
         $weightexpr = common_sql_weight('fave.modified', common_config('popular', 'dropoff'));