Explorar o código

! Oops for wrong precedence on the cache test. This is probably the cause of #890 and #864.

Signed-off-by: Peter Spicer <sleeping@myperch.org>
Peter Spicer %!s(int64=11) %!d(string=hai) anos
pai
achega
04dcb279e4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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']('', '