Commit a276c69b authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4271 (Points not assigned for blog posts)

parent 786400fc
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -147,6 +147,11 @@ function give_submit_points($type, $member = null)
        $member = get_member();
    }
    if ((!is_guest($member)) && (addon_installed('points'))) {
        // FUDGE
        if ($type == 'ADD_NEWS_BLOG') {
            $type = 'ADD_NEWS';
        }

        $points = get_option('points_' . $type, true);
        if (is_null($points)) {
            return '';