2
0
forked from Wavyzz/dolibarr

Fix scrutinizer

This commit is contained in:
Laurent Destailleur
2019-09-06 19:12:43 +02:00
parent 018a43e1d3
commit 231725e351
4 changed files with 13 additions and 10 deletions

View File

@@ -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";

View File

@@ -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);

View File

@@ -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);