summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@status.net>2010-11-19 10:43:20 -0800
committerBrion Vibber <brion@status.net>2010-11-19 10:43:20 -0800
commit9a590e0843063e9ac43f6372d55d6a0941764eab (patch)
tree3e1c1fc8643d9c0d0d8bde9b0f4c39331e48c977 /lib
parentd9279692093a3dba472af863de21e840aac8c19c (diff)
parent573f98c5bc387b64bbce7020c15d63efef2b1d7a (diff)
Merge branch 'master' of gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'lib')
-rw-r--r--lib/popularity.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/popularity.php b/lib/popularity.php
index b6987138b..7ab259a39 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'));