Your documentation says that a user can pass NULL for the $uid arg (or not supply an argument), but your first line of code in that function will return if $uid is null. You need to change:

if(!$uid) {
  return;
}

to:

if($uid === 0) {
  return;
}

Comments

afox’s picture

Assigned: Unassigned » afox
Status: Active » Closed (fixed)

Thanks, fixed in dev.

afox’s picture

Issue summary: View changes

added ;