소스 검색

Merge pull request #893 from Arantor/release-2.1

! Oops for wrong precedence on the cache test. This is probably the caus...
Arantor 11 년 전
부모
커밋
c9485260ef
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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']('', '