forked from Wavyzz/dolibarr
Fix scrutinizer
This commit is contained in:
@@ -438,7 +438,6 @@ foreach ($dirmodels as $reldir)
|
|||||||
|
|
||||||
if ($modulequalified)
|
if ($modulequalified)
|
||||||
{
|
{
|
||||||
$var = !$var;
|
|
||||||
print '<tr class="oddeven"><td width="100">';
|
print '<tr class="oddeven"><td width="100">';
|
||||||
print (empty($module->name)?$name:$module->name);
|
print (empty($module->name)?$name:$module->name);
|
||||||
print "</td><td>\n";
|
print "</td><td>\n";
|
||||||
|
|||||||
@@ -44,15 +44,18 @@ $object->fetch($id);
|
|||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$form = new Form($db);
|
||||||
|
|
||||||
$title = $langs->trans('Asset') . " - " . $langs->trans('Info');
|
$title = $langs->trans('Asset') . " - " . $langs->trans('Info');
|
||||||
$helpurl = "";
|
$helpurl = "";
|
||||||
llxHeader('', $title, $helpurl);
|
llxHeader('', $title, $helpurl);
|
||||||
|
|
||||||
$form = new Form($db);
|
|
||||||
|
|
||||||
$object->info($id);
|
$object->info($id);
|
||||||
|
|
||||||
$head = asset_prepare_head($object);
|
$head = asset_prepare_head($object);
|
||||||
|
|||||||
@@ -63,28 +63,28 @@ class Fiscalyear extends CommonObject
|
|||||||
* @var string fiscal year label
|
* @var string fiscal year label
|
||||||
*/
|
*/
|
||||||
public $label;
|
public $label;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Date start (date_start)
|
* Date start (date_start)
|
||||||
*
|
*
|
||||||
* @var integer
|
* @var integer
|
||||||
*/
|
*/
|
||||||
public $date_start;
|
public $date_start;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Date end (date_end)
|
* Date end (date_end)
|
||||||
*
|
*
|
||||||
* @var integer
|
* @var integer
|
||||||
*/
|
*/
|
||||||
public $date_end;
|
public $date_end;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Date creation record (datec)
|
* Date creation record (datec)
|
||||||
*
|
*
|
||||||
* @var integer
|
* @var integer
|
||||||
*/
|
*/
|
||||||
public $datec;
|
public $datec;
|
||||||
|
|
||||||
public $statut; // 0=open, 1=closed
|
public $statut; // 0=open, 1=closed
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -894,14 +894,15 @@ class Cronjob extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Load object information
|
* Load object information
|
||||||
*
|
*
|
||||||
* @return int
|
* @param int $id ID
|
||||||
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function info()
|
public function info($id)
|
||||||
{
|
{
|
||||||
$sql = "SELECT";
|
$sql = "SELECT";
|
||||||
$sql.= " f.rowid, f.datec, f.tms, f.fk_user_mod, f.fk_user_author";
|
$sql.= " f.rowid, f.datec, f.tms, f.fk_user_mod, f.fk_user_author";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."cronjob as f";
|
$sql.= " FROM ".MAIN_DB_PREFIX."cronjob as f";
|
||||||
$sql.= " WHERE f.rowid = ".$this->id;
|
$sql.= " WHERE f.rowid = ".$id;
|
||||||
|
|
||||||
dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
|
dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
|
||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
|
|||||||
Reference in New Issue
Block a user