Browse Source

That doesn't even make sense

spaghetti 2 years ago
parent
commit
fbf77bcf54
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sections/index/private.php

+ 1
- 1
sections/index/private.php View File

@@ -18,7 +18,7 @@ if (!$News = $Cache->get_value('news')) {
18 18
   $Cache->cache_value('news_latest_title', $News[0][1], 0);
19 19
 }
20 20
 
21
-if ($LoggedUser['LastReadNews'] != $News[0][0] && count($News[0][0]) > 0) {
21
+if ($LoggedUser['LastReadNews'] != $News[0][0] && count($News) > 0) {
22 22
   $Cache->begin_transaction("user_info_heavy_$UserID");
23 23
   $Cache->update_row(false, array('LastReadNews' => $News[0][0]));
24 24
   $Cache->commit_transaction(0);

Loading…
Cancel
Save