Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1714 Rev 1715
Line 224... Line 224...
224
			$msgRecap = '';
224
			$msgRecap = '';
225
			foreach ($this->recapitulatifAdmin as $utilisateurId => $message) {
225
			foreach ($this->recapitulatifAdmin as $utilisateurId => $message) {
226
				$url = sprintf($urlTpl, $utilisateurId);
226
				$url = sprintf($urlTpl, $utilisateurId);
227
				$json = $clientRest->consulter($url);
227
				$json = $clientRest->consulter($url);
228
				$infosUtilisateur = json_decode($json);
228
				$infosUtilisateur = json_decode($json);
-
 
229
				if (isset($infosUtilisateur->courriel) && isset($infosUtilisateur->intitule)) {
229
				$intitule = $infosUtilisateur->intitule.' ('.$infosUtilisateur->courriel.')';
230
					$intitule = $infosUtilisateur->intitule.' ('.$infosUtilisateur->courriel.')';
-
 
231
				} else {
-
 
232
					$intitule = "Utilisateur avec id $utilisateurId introuvable";
-
 
233
				}
230
				$separateur = str_repeat('-', 50);
234
				$separateur = str_repeat('-', 50);
Line 231... Line 235...
231
 
235
 
232
				$msgRecap += "Message envoyé à : $intitule\n$message\n$separateur\n";
236
				$msgRecap += "Message envoyé à : $intitule\n$message\n$separateur\n";
233
			}
237
			}