forked from Wavyzz/dolibarr
je pensais avoir trouvé un bug dans ce module mais c'est juste un soucis d'indentation qui fait que j'arrive pas à lire le code, désolé donc je réindente pour m'y retrouver
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -55,9 +56,9 @@ class DolibarrModules
|
||||
$err = 0;
|
||||
$sql_del = "DELETE FROM ".MAIN_DB_PREFIX."const WHERE name = '".$this->const_name."';";
|
||||
$this->db->query($sql_del);
|
||||
|
||||
$sql ="INSERT INTO ".MAIN_DB_PREFIX."const (name,value,visible) VALUES
|
||||
('".$this->const_name."','1',0);";
|
||||
|
||||
if (!$this->db->query($sql))
|
||||
{
|
||||
$err++;
|
||||
@@ -173,7 +174,7 @@ class DolibarrModules
|
||||
$sql .= "(".$r_id.",'".$r_desc."','".$r_modul."','".$r_type."',".$r_def.");";
|
||||
}
|
||||
|
||||
|
||||
// print "<pre>DEBUG ERIC: $sql</pre>\n";
|
||||
if ( $this->db->query($sql) )
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user