Commit 28d7a366c552520bf5f5fb2cc6d87e04e54325e5
1 parent
0e01fe91
MAJ
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
site/accesBase.php
... | ... | @@ -300,7 +300,7 @@ |
300 | 300 | $query = "SELECT * FROM history WHERE sensor = '$sensor'"; |
301 | 301 | $result = pg_query($db, $query) or die("La requ te a echou : ".pg_last_error()); |
302 | 302 | deconnexion($db); |
303 | - if(pg_affected_rows($result)!=0) | |
303 | + if(pg_affected_rows($result)>1) | |
304 | 304 | { |
305 | 305 | return True; |
306 | 306 | } | ... | ... |