/[dolibarr]/dolibarr/htdocs/expedition/mods/methode_expedition.modules.php
ViewVC logotype

Diff of /dolibarr/htdocs/expedition/mods/methode_expedition.modules.php

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

revision 1.3 by rodolphe, Sun Jul 31 08:57:35 2005 UTC revision 1.4 by rodolphe, Sun Jul 31 09:16:17 2005 UTC
# Line 31  Class methode_expedition Line 31  Class methode_expedition
31        $this->description = "ERREUR DANS LA DEFINITION DU MODULE.";        $this->description = "ERREUR DANS LA DEFINITION DU MODULE.";
32      }      }
33    
34    Function Active()    Function Active($statut)
35      {      {
36        // Mise a jour du statut        // Mise a jour du statut
37        $sql = "UPDATE ".MAIN_DB_PREFIX."expedition_methode set statut= 1 ";        $sql = "UPDATE ".MAIN_DB_PREFIX."expedition_methode set statut = $statut ";
38        $sql.= " WHERE rowid = ".$this->id;        $sql.= " WHERE rowid = ".$this->id;
39                
40        $resql = $this->db->query($sql);        $resql = $this->db->query($sql);
# Line 43  Class methode_expedition Line 43  Class methode_expedition
43          {          {
44            $af = $this->db->affected_rows($resql);            $af = $this->db->affected_rows($resql);
45                        
46            if ($af == 0)            if ($af == 0 && $statut == 1)
47              {              {
48                // On créé la méthode dans la base                // On créé la méthode dans la base
49                                

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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