Subversion Repositories eFlore/Applications.cel

Rev

Rev 3572 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3572 Rev 3573
Line 197... Line 197...
197
		$sortie = $donnees;
197
		$sortie = $donnees;
198
		if (count($this->messages) != 0) {
198
		if (count($this->messages) != 0) {
199
			$code_http = 500; // Internal Server Error
199
			$code_http = 500; // Internal Server Error
200
			$mime = 'application/json';
200
			$mime = 'application/json';
201
			$json = true;
201
			$json = true;
202
			if (!isset($donnees)) {
-
 
203
				$donnees = new stdClass();
-
 
204
			}
-
 
205
			$donnees->cause = $this->messages;
202
			$donnees->cause = $this->messages;
206
		} else {
203
		} else {
207
			$code_http = 200; // OK
204
			$code_http = 200; // OK
208
			if (is_null($donnees)) {
205
			if (is_null($donnees)) {
209
				$sortie = 'OK';
206
				$sortie = 'OK';