Fix: rename $class to $classname to prevents problems

http://www.manuelphp.com/php/reserved.keywords.php
This commit is contained in:
Regis Houssin
2010-04-09 07:55:37 +00:00
parent 7b1c726424
commit 73f216fd89
20 changed files with 106 additions and 106 deletions

View File

@@ -38,7 +38,7 @@ class Document
/**
\brief G<EFBFBD>n<EFBFBD>re le document
\brief Genere le document
\return int 0= ok, <> 0 = ko
*/
function Generate ($id)
@@ -47,11 +47,11 @@ class Document
dol_syslog("Document::Generate id=$id", LOG_DEBUG );
$this->id = $id;
$class = $id;
$classfile = 'docs/class/'.$class.'.class.php';
$classname = $id;
$classfile = 'docs/class/'.$classname.'.class.php';
require DOL_DOCUMENT_ROOT.'/'.$classfile;
$obj = new $class($this->db);
$obj = new $classname($this->db);
$this->db->begin();