summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-30 08:38:14 +1000
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-30 08:38:14 +1000
commit8921eb9c1a43e13e096fe72850d75dcf2974483f (patch)
treecd79f7943ef0f41e209ef3ca0afbab2e389f1b7d
parent738179c766953fa45670e451875210c6874a41f2 (diff)
Bugfix: pm_unreadcount cache not working correctly
-rw-r--r--inc/mod/pages.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index e782b09b..043b9a5c 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -92,7 +92,7 @@ function mod_dashboard() {
}
}
- if (!$config['cache']['enabled'] || ($args['unread_pms'] = cache::get('pm_unreadcount_' . $mod['id'])) == false) {
+ if (!$config['cache']['enabled'] || ($args['unread_pms'] = cache::get('pm_unreadcount_' . $mod['id'])) === false) {
$query = prepare('SELECT COUNT(*) FROM ``pms`` WHERE `to` = :id AND `unread` = 1');
$query->bindValue(':id', $mod['id']);
$query->execute() or error(db_error($query));