瀏覽代碼

Fix error

LaurentTreguier 10 年之前
父節點
當前提交
2d78f5e0ad
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. 3
    1
      models/data.class.php

+ 3
- 1
models/data.class.php 查看文件

21
             "where" => array(
21
             "where" => array(
22
                 array("identifiant", "=", $email)
22
                 array("identifiant", "=", $email)
23
             )
23
             )
24
-        ))[0];
24
+        ));
25
 
25
 
26
         if($data == NULL)
26
         if($data == NULL)
27
         {
27
         {
28
             throw new LengthException("Les données n'existent pas");
28
             throw new LengthException("Les données n'existent pas");
29
         }
29
         }
30
 
30
 
31
+        $data = $data[0];
32
+
31
         // Chargement des informations
33
         // Chargement des informations
32
         $this->identifiant = $email;
34
         $this->identifiant = $email;
33
         $this->nom_fils = $data["nom_fils"];
35
         $this->nom_fils = $data["nom_fils"];