Brendan Abolivier 9 年 前
コミット
5d604677d9
共有1 個のファイルを変更した5 個の追加1 個の削除を含む
  1. 5
    1
      web/class.connector.php

+ 5
- 1
web/class.connector.php ファイルの表示

@@ -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
 }