/[dolibarr]/dolibarr/htdocs/user.class.php
ViewVC logotype

Diff of /dolibarr/htdocs/user.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.73 by eldy, Tue Nov 1 16:50:31 2005 UTC revision 1.74 by eldy, Wed Nov 2 00:12:49 2005 UTC
# Line 114  class User Line 114  class User
114          }          }
115          else          else
116          {          {
117              $sql .= " WHERE u.rowid = $this->id";              $sql .= " WHERE u.rowid = ".$this->id;
118          }          }
119                    
120          $result = $this->db->query($sql);          $result = $this->db->query($sql);
121          if ($result)          if ($result)
122          {          {
123              if ($this->db->num_rows($result))              $obj = $this->db->fetch_object($result);
124                if ($obj)
125              {              {
                 $obj = $this->db->fetch_object($result);  
126                  $this->id = $obj->rowid;                  $this->id = $obj->rowid;
127                  $this->nom = stripslashes($obj->name);                  $this->nom = stripslashes($obj->name);
128                  $this->prenom = stripslashes($obj->firstname);                  $this->prenom = stripslashes($obj->firstname);

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26