|
@@ -1862,9 +1862,10 @@ 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
|