summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-11-18 14:30:00 -0800
committerBrion Vibber <brion@pobox.com>2010-11-18 14:30:00 -0800
commitf4681807439ac90239d114093a3841ef738282a3 (patch)
treea54745e46e452f805c7d261e521226f48a64ae6f /lib
parent0265cdc1c982ca2bd33ceee7d9d956eda91e9d37 (diff)
Fix regression in PopularNoticeSection: tag parameter was broken, causing sidebar on tag pages to show untagged favorites.
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'));