Resolve warning
This commit is contained in:
parent
d1c46cc1e0
commit
0f1176e861
@ -765,16 +765,19 @@ class Scores_Ws_Server
|
||||
|
||||
} elseif ($ip != '127.0.0.1') {
|
||||
|
||||
// For customized version, check user is in the good service
|
||||
// --- 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 (count($params['idClient']) > 0) {
|
||||
foreach ($params['idClient'] as $idClient) {
|
||||
$wsClients[$idClient] = $section;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if ( array_key_exists($userInfos->idClient, $wsClients)
|
||||
&& ( $this->serviceClient === false
|
||||
if ( array_key_exists($userInfos->idClient, $wsClients) && ( $this->serviceClient === false
|
||||
|| strtolower($this->serviceClientName) != $wsClients[$userInfos->idClient] ) ){
|
||||
return '0901';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user