summaryrefslogtreecommitdiff
path: root/inc/mod
diff options
context:
space:
mode:
authorMichael <savetheinternet@tinyboard.org>2013-06-18 10:45:13 -0700
committerMichael <savetheinternet@tinyboard.org>2013-06-18 10:45:13 -0700
commit0ac9dd5f25ffd9969786567cf7f3081c39f4e0c7 (patch)
treefd8e8bce38293493b1565147e1bbc3e3fdb7b875 /inc/mod
parentcbc3bd0c0a13463dbdbc3d53a03dd9b2080496c4 (diff)
parent399aa463b3d046a49c861a2c60c997f39af22561 (diff)
Merge pull request #115 from Macil/miscfixes
Miscellaneous fixes
Diffstat (limited to 'inc/mod')
-rw-r--r--inc/mod/auth.php2
-rw-r--r--inc/mod/pages.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/inc/mod/auth.php b/inc/mod/auth.php
index 73a24c44..173190ab 100644
--- a/inc/mod/auth.php
+++ b/inc/mod/auth.php
@@ -128,7 +128,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 6a780474..86f5ee52 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));
@@ -1870,6 +1870,7 @@ function mod_theme_configure($theme_name) {
'result' => $result,
'message' => $message,
));
+ return;
}
$settings = themeSettings($theme_name);