Commit c52468611f2575b69bf1bbd673a8d5e9253e62ee

Authored by Geoffrey PREUD'HOMME
1 parent 722c6952

Obviously catched everything but what was needed

Showing 1 changed file with 4 additions and 0 deletions   Show diff stats
pages/schools.php
... ... @@ -18,6 +18,10 @@ try {
18 18  
19 19 $resultat = mysql_query($requete);
20 20  
  21 + if (!$resultat) {
  22 + throw new Exception('Résultat vide.');
  23 + }
  24 +
21 25 mysql_close($link);
22 26 ?>
23 27  
... ...