소스 검색

Minor fix

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
 }