Skip to content

Commit

Permalink
fix(likes): don't emit notice if a listing's $vars['list_class'] is…
Browse files Browse the repository at this point in the history
…n't set
  • Loading branch information
mrclay committed Sep 6, 2016
1 parent 98843dc commit f288215
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/likes/views/default/likes/before_lists.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit f288215

Please sign in to comment.