@@ -33,11 +33,9 @@ discard block |
||
| 33 | 33 | if ($type_boite !== null) { |
| 34 | 34 | if ($type_boite == "boite réception") { |
| 35 | 35 | $this->getBoiteReception(); |
| 36 | - } |
|
| 37 | - else if ($type_boite == "messages envoyés") { |
|
| 36 | + } else if ($type_boite == "messages envoyés") { |
|
| 38 | 37 | $this->getMessagesEnvoyes(); |
| 39 | - } |
|
| 40 | - else if ($type_boite == "messages supprimés") { |
|
| 38 | + } else if ($type_boite == "messages supprimés") { |
|
| 41 | 39 | $this->getMessageSupprimes(); |
| 42 | 40 | } |
| 43 | 41 | |
@@ -240,8 +238,7 @@ discard block |
||
| 240 | 238 | "supprimer" => $obj->supprimer |
| 241 | 239 | ]; |
| 242 | 240 | } |
| 243 | - } |
|
| 244 | - else { |
|
| 241 | + } else { |
|
| 245 | 242 | return false; |
| 246 | 243 | } |
| 247 | 244 | } |
@@ -294,17 +291,14 @@ discard block |
||
| 294 | 291 | for ($i=0 ; $i<$c ; $i++) { |
| 295 | 292 | if ($this->getIdIdentiteExist($destinataires[$i]) !== false) { |
| 296 | 293 | $destinataires[] = $this->getIdIdentiteExist($destinataires[$i]); |
| 297 | - } |
|
| 298 | - else { |
|
| 294 | + } else { |
|
| 299 | 295 | return false; |
| 300 | 296 | } |
| 301 | 297 | } |
| 302 | - } |
|
| 303 | - else { |
|
| 298 | + } else { |
|
| 304 | 299 | if ($this->getIdIdentiteExist($destinataire) !== false) { |
| 305 | 300 | $destinataires[] = $this->getIdIdentiteExist($destinataire); |
| 306 | - } |
|
| 307 | - else { |
|
| 301 | + } else { |
|
| 308 | 302 | return false; |
| 309 | 303 | } |
| 310 | 304 | } |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | if (isset($_POST['admin'])) { |
| 6 | 6 | \core\auth\Connexion::setLogin($pseudo, $mdp, WEBROOT."administrator/login", WEBROOT."administrator", 0); |
| 7 | - } |
|
| 8 | - else { |
|
| 7 | + } else { |
|
| 9 | 8 | \core\auth\Connexion::setLogin($pseudo, $mdp, WEBROOT."login", WEBROOT."index.php", 0); |
| 10 | 9 | } |
| 11 | 10 | \ No newline at end of file |