1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed helperLikesHtml()

Discussion in 'Resolved Bug Reports' started by Syndol, Jan 26, 2013.

  1. Syndol

    Syndol Guest

    In Template/Helper/Core.php
    Function helperLikesHtml(), line 425:
    $users = array_values($users);

    Should be above:
    if (count($users) == 3)
    {
    unset($users[2]);
    }

    Otherwise when there are exactly 4 likes and you are the second one, the last displayed like is not in order.
     
  2. Mike

    Mike XenForo Developer Staff Member

    Fixed. Good catch. :)
     
    Slavik likes this.

Share This Page