Permalink
Browse files

fix(likes): don't emit notice if a listing's `$vars['list_class']` is…

…n't set
  • Loading branch information...
mrclay committed Sep 6, 2016
1 parent 98843dc commit f2882158eed56c42c938b69d7e7caa53485284a5
Showing with 1 addition and 0 deletions.
  1. +1 −0 mod/likes/views/default/likes/before_lists.php
@@ -9,6 +9,7 @@
$user = elgg_get_logged_in_user_entity();
if ($user
&& !elgg_in_context('widgets')
&& !empty($vars['list_class'])
&& ($vars['list_class'] === 'elgg-list-river' || $vars['list_class'] === 'elgg-list-entity')
&& (count($vars['items']) > 2)) {
$preloader = new \Elgg\Likes\Preloader(\Elgg\Likes\DataService::instance());

0 comments on commit f288215

Please sign in to comment.