Subversion Repositories eFlore/Applications.cel

Rev

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

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