summaryrefslogtreecommitdiff
path: root/inc/mod
diff options
context:
space:
mode:
Diffstat (limited to 'inc/mod')
-rw-r--r--inc/mod/auth.php2
-rw-r--r--inc/mod/pages.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/inc/mod/auth.php b/inc/mod/auth.php
index f594af4b..d4a2ea1c 100644
--- a/inc/mod/auth.php
+++ b/inc/mod/auth.php
@@ -125,7 +125,7 @@ if (isset($_COOKIE[$config['cookies']['mod']])) {
function create_pm_header() {
global $mod, $config;
- if ($config['cache']['enabled'] && ($header = cache::get('pm_unread_' . $mod['id'])) !== false) {
+ if ($config['cache']['enabled'] && ($header = cache::get('pm_unread_' . $mod['id'])) != false) {
if ($header === true)
return false;
diff --git a/inc/mod/pages.php b/inc/mod/pages.php
index cf06e7d9..726ed735 100644
--- a/inc/mod/pages.php
+++ b/inc/mod/pages.php
@@ -89,7 +89,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));