Condition positive
This commit is contained in:
parent
b4acea6de5
commit
2ba274de1d
@ -1460,10 +1460,10 @@ class Saisie extends Scores_Ws_Server
|
|||||||
$row = $bilansM->fetchRow($sql);
|
$row = $bilansM->fetchRow($sql);
|
||||||
|
|
||||||
} catch (Zend_Db_Exception $e) {
|
} catch (Zend_Db_Exception $e) {
|
||||||
if ($this->User->idClient!=1) {
|
if ($this->User->idClient == 1) {
|
||||||
throw new SoapFault('ERR', "Application error");
|
|
||||||
} else {
|
|
||||||
throw new SoapFault('ERR', $e->getMessage());
|
throw new SoapFault('ERR', $e->getMessage());
|
||||||
|
} else {
|
||||||
|
throw new SoapFault('ERR', "Application error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1493,10 +1493,10 @@ class Saisie extends Scores_Ws_Server
|
|||||||
try {
|
try {
|
||||||
$id = $bilansM->insert($dataToInsert);
|
$id = $bilansM->insert($dataToInsert);
|
||||||
} catch (Zend_Db_Exception $e) {
|
} catch (Zend_Db_Exception $e) {
|
||||||
if ($this->User->idClient!=1) {
|
if ($this->User->idClient == 1) {
|
||||||
throw new SoapFault('ERR', "Application error");
|
|
||||||
} else {
|
|
||||||
throw new SoapFault('ERR', $e->getMessage());
|
throw new SoapFault('ERR', $e->getMessage());
|
||||||
|
} else {
|
||||||
|
throw new SoapFault('ERR', "Application error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1512,10 +1512,10 @@ class Saisie extends Scores_Ws_Server
|
|||||||
try {
|
try {
|
||||||
$historiquesM->insert($backupData);
|
$historiquesM->insert($backupData);
|
||||||
} catch (Zend_Db_Exception $e) {
|
} catch (Zend_Db_Exception $e) {
|
||||||
if ($this->User->idClient!=1) {
|
if ($this->User->idClient == 1) {
|
||||||
throw new SoapFault('ERR', "Application error");
|
|
||||||
} else {
|
|
||||||
throw new SoapFault('ERR', $e->getMessage());
|
throw new SoapFault('ERR', $e->getMessage());
|
||||||
|
} else {
|
||||||
|
throw new SoapFault('ERR', "Application error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1540,10 +1540,10 @@ class Saisie extends Scores_Ws_Server
|
|||||||
try {
|
try {
|
||||||
$id = $bilansM->update($dataToUpdate, 'id = '.$row->id);
|
$id = $bilansM->update($dataToUpdate, 'id = '.$row->id);
|
||||||
} catch (Zend_Db_Exception $e) {
|
} catch (Zend_Db_Exception $e) {
|
||||||
if ($this->User->idClient!=1) {
|
if ($this->User->idClient == 1) {
|
||||||
throw new SoapFault('ERR', "Application error");
|
|
||||||
} else {
|
|
||||||
throw new SoapFault('ERR', $e->getMessage());
|
throw new SoapFault('ERR', $e->getMessage());
|
||||||
|
} else {
|
||||||
|
throw new SoapFault('ERR', "Application error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1566,10 +1566,10 @@ class Saisie extends Scores_Ws_Server
|
|||||||
'postesDiff' => implode(';', $postesDiff),
|
'postesDiff' => implode(';', $postesDiff),
|
||||||
));
|
));
|
||||||
} catch (Zend_Db_Exception $e) {
|
} catch (Zend_Db_Exception $e) {
|
||||||
if ($this->User->idClient!=1) {
|
if ($this->User->idClient == 1) {
|
||||||
throw new SoapFault('ERR', "Application error");
|
|
||||||
} else {
|
|
||||||
throw new SoapFault('ERR', $e->getMessage());
|
throw new SoapFault('ERR', $e->getMessage());
|
||||||
|
} else {
|
||||||
|
throw new SoapFault('ERR', "Application error");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user