|
@@ -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);
|