Browse Source

Revert "! $context['my_likes'] wasn't always an array (per #890)"

This reverts commit cafc28ac1335919bfde7970962f42c96dba2ee73.
Michael Eshom 11 years ago
parent
commit
04288008e0
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Sources/Display.php

+ 1 - 2
Sources/Display.php

@@ -1862,10 +1862,9 @@ function prepareLikesContext()
 	$cache_key = 'likes_topic_' . $topic . '_' . $context['user']['id'];
 	$ttl = 180;
 
-	$temp = array();
-
 	if ($temp = cache_get_data($cache_key, $ttl) === null)
 	{
+		$temp = array();
 		$request = $smcFunc['db_query']('', '
 			SELECT content_id
 			FROM {db_prefix}user_likes AS l