Init empty array
This commit is contained in:
parent
4e2d77a1ae
commit
a876608cb3
@ -704,13 +704,14 @@ class Scores_Ws_Server
|
||||
|
||||
// For customized version, check user is in the good service
|
||||
$clients = include APPLICATION_PATH . '/../library/WsScore/Clients/ClientsConfig.php';
|
||||
$wsClients = array();
|
||||
foreach( $clients as $section => $params ){
|
||||
if ($params['actif']) {
|
||||
$wsClients[$params['idClient']] = $section;
|
||||
}
|
||||
}
|
||||
if ( array_key_exists($userInfos->idClient, $wsClients)
|
||||
&& ( $this->serviceClient == false
|
||||
&& ( $this->serviceClient === false
|
||||
|| strtolower($this->serviceClientName) != $wsClients[$userInfos->idClient] ) ){
|
||||
return '0901';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user