瀏覽代碼

Minor fix

Brendan Abolivier 10 年之前
父節點
當前提交
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
 }