forked from leftypol/leftypol
commit
0ac9dd5f25
8 changed files with 31 additions and 26 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue