Fix: no constructor in commonobject class
This commit is contained in:
parent
481ecd6a87
commit
d7671190bd
@ -36,6 +36,15 @@ class CommonObject
|
|||||||
// Instantiate hook classe of thirdparty module
|
// Instantiate hook classe of thirdparty module
|
||||||
var $hooks=array();
|
var $hooks=array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructeur de la classe
|
||||||
|
* @param DB Handler acces base de donnees
|
||||||
|
*/
|
||||||
|
function CommonObject($DB)
|
||||||
|
{
|
||||||
|
$this->db = $DB;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Check if ref is used.
|
* \brief Check if ref is used.
|
||||||
* \return int <0 if KO, 0 if not found, >0 if found
|
* \return int <0 if KO, 0 if not found, >0 if found
|
||||||
@ -776,7 +785,7 @@ class CommonObject
|
|||||||
function line_ajaxorder($roworder)
|
function line_ajaxorder($roworder)
|
||||||
{
|
{
|
||||||
$rows = explode(',',$roworder);
|
$rows = explode(',',$roworder);
|
||||||
$num = sizeof($rows);
|
$num = count($rows);
|
||||||
|
|
||||||
dol_syslog("CommonObject::line_ajaxorder roworder=".$roworder." num=".$num, LOG_DEBUG);
|
dol_syslog("CommonObject::line_ajaxorder roworder=".$roworder." num=".$num, LOG_DEBUG);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user