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

Fixed Unnecessary Code in Controller

Discussion in 'Resource Manager Resolved Bugs' started by Jeremy, Dec 5, 2014.

  1. Jeremy

    Jeremy Well-Known Member

    This code isn't used in XenResource_ControllerPublic_Author::actionView():
        // get average author rating
    $ratingSum 0;
    $ratingCount 0;
        foreach (
    $resources AS $resource)
    $ratingSum += $resource['rating_sum'];
    $ratingCount += $resource['rating_count'];
    It exists right before the return, and $ratingSum and $ratingCount isn't used in the return value.
  2. Chris D

    Chris D XenForo Developer Staff Member

    Sorted, thanks.

Share This Page