Browse Source

Fix error

LaurentTreguier 9 years ago
parent
commit
2d78f5e0ad
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      models/data.class.php

+ 3
- 1
models/data.class.php View File

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