forked from leftypol/leftypol
Fix PM count caching.
cache::get() returns null if the key wasn't found (at least when using the Redis cache backend).
This commit is contained in:
parent
fd33e9eba1
commit
3bcc87caf2
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue