Browse Source

Merge pull request #893 from Arantor/release-2.1

! Oops for wrong precedence on the cache test. This is probably the caus...
Arantor 11 years ago
parent
commit
c9485260ef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Sources/Display.php

+ 1 - 1
Sources/Display.php

@@ -1862,7 +1862,7 @@ function prepareLikesContext()
 	$cache_key = 'likes_topic_' . $topic . '_' . $context['user']['id'];
 	$ttl = 180;
 
-	if ($temp = cache_get_data($cache_key, $ttl) === null)
+	if (($temp = cache_get_data($cache_key, $ttl)) === null)
 	{
 		$temp = array();
 		$request = $smcFunc['db_query']('', '