Hi,

I found a bug in the code (line ~1785)
function userpoints_get_default_tid() doesn't retun anything. (missing return).

replace

/*
 * Wrapper function to return the default tid via API call
 */
function userpoints_get_default_tid() {
  variable_get(USERPOINTS_CATEGORY_DEFAULT_TID, NULL);
}

with

/*
 * Wrapper function to return the default tid via API call
 */
function userpoints_get_default_tid() {
  return variable_get(USERPOINTS_CATEGORY_DEFAULT_TID, NULL);
}

Comments

kbahey’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Active » Fixed

This was fixed in 6.x-1.x-dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.