X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fpopularity.php;h=7ab259a391b28433ea84c40bb4d53ef7bfcb5451;hb=f68d4e7d061f33cffbcf685949f3116237c23e55;hp=b6987138b559e6cce4141ccf187e74005bf5d29b;hpb=fa6c6077d6e49d03b10da4339e3c97e0734897de;p=quix0rs-gnu-social.git diff --git a/lib/popularity.php b/lib/popularity.php index b6987138b5..7ab259a391 100644 --- a/lib/popularity.php +++ b/lib/popularity.php @@ -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'));