diff --git a/pages/schools.php b/pages/schools.php index 03a1e2a..a760d58 100755 --- a/pages/schools.php +++ b/pages/schools.php @@ -18,6 +18,10 @@ try { $resultat = mysql_query($requete); + if (!$resultat) { + throw new Exception('Résultat vide.'); + } + mysql_close($link); ?> -- libgit2 0.21.2