Init empty array

This commit is contained in:
Michael RICOIS 2015-01-16 10:49:42 +00:00
parent 4e2d77a1ae
commit a876608cb3

View File

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