Skip to content
This repository was archived by the owner on Jan 13, 2019. It is now read-only.

Commit

Permalink
Fixed a null pointer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
r4stl1n committed Nov 17, 2014
1 parent 1ed41ae commit 744d348
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions thirdparty/IPBoard3/aa/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,11 +295,10 @@ public function getUserGroups( $api_key, $api_module, $username)
$this->addLogging( $api_key );

$member = IPSMember::load($username,'all','username');

$groups = array();
if( $member['mgroup_others']) {
$groupids = explode(',' , $member['mgroup_others']);

$groups = array();

foreach ($groupids as &$groupid) {
ipsRegistry::DB()->build(array('select' => 'g_title', 'from'=>'groups','where'=>'g_id='.$groupid));
$result = ipsRegistry::DB()->execute();
Expand Down

0 comments on commit 744d348

Please sign in to comment.