Brendan Abolivier 9 anni fa
parent
commit
5d604677d9
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5
    1
      web/class.connector.php

+ 5
- 1
web/class.connector.php Vedi File

@@ -68,6 +68,10 @@ class Connector {
68 68
 			}
69 69
 		}
70 70
 
71
-		return $this->bdd->prepare($request)->execute($arrayVerif)->fetchAll();
71
+		if($stmt = $this->bdd->prepare($request)->execute($arrayVerif)) {
72
+			return $stmt->fetchAll();
73
+		} else {
74
+			return null;
75
+		}
72 76
 	}
73 77
 }