Subversion Repositories eFlore/Applications.cel

Rev

Rev 3246 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3246 Rev 3572
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
			}
202
			$donnees->cause = $this->messages;
205
			$donnees->cause = $this->messages;
203
		} else {
206
		} else {
204
			$code_http = 200; // OK
207
			$code_http = 200; // OK
205
			if (is_null($donnees)) {
208
			if (is_null($donnees)) {
206
				$sortie = 'OK';
209
				$sortie = 'OK';