mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 20:40:17 +02:00
Fixed a null pointer bug
This commit is contained in:
parent
1ed41ae043
commit
744d3489f5
3
thirdparty/IPBoard3/aa/api.php
vendored
3
thirdparty/IPBoard3/aa/api.php
vendored
@ -295,11 +295,10 @@ class API_Server
|
||||
$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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user