mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
Fixed a null pointer bug
This commit is contained in:
parent
1ed41ae043
commit
744d3489f5
5
thirdparty/IPBoard3/aa/api.php
vendored
5
thirdparty/IPBoard3/aa/api.php
vendored
@ -295,11 +295,10 @@ class API_Server
|
|||||||
$this->addLogging( $api_key );
|
$this->addLogging( $api_key );
|
||||||
|
|
||||||
$member = IPSMember::load($username,'all','username');
|
$member = IPSMember::load($username,'all','username');
|
||||||
|
$groups = array();
|
||||||
if( $member['mgroup_others']) {
|
if( $member['mgroup_others']) {
|
||||||
$groupids = explode(',' , $member['mgroup_others']);
|
$groupids = explode(',' , $member['mgroup_others']);
|
||||||
|
|
||||||
$groups = array();
|
|
||||||
foreach ($groupids as &$groupid) {
|
foreach ($groupids as &$groupid) {
|
||||||
ipsRegistry::DB()->build(array('select' => 'g_title', 'from'=>'groups','where'=>'g_id='.$groupid));
|
ipsRegistry::DB()->build(array('select' => 'g_title', 'from'=>'groups','where'=>'g_id='.$groupid));
|
||||||
$result = ipsRegistry::DB()->execute();
|
$result = ipsRegistry::DB()->execute();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user