Resolve warning

This commit is contained in:
Michael RICOIS 2015-07-06 13:53:06 +00:00
parent d1c46cc1e0
commit 0f1176e861

View File

@ -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';
}