mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix yogosha #5627
This commit is contained in:
@@ -276,7 +276,7 @@ class Task extends CommonObject
|
||||
if (!empty($ref)) {
|
||||
$sql .= "t.ref = '".$this->db->escape($ref)."'";
|
||||
} else {
|
||||
$sql .= "t.rowid = ".$id;
|
||||
$sql .= "t.rowid = ".((int) $id);
|
||||
}
|
||||
|
||||
dol_syslog(get_class($this)."::fetch", LOG_DEBUG);
|
||||
@@ -1369,7 +1369,7 @@ class Task extends CommonObject
|
||||
$sql .= " t.thm,";
|
||||
$sql .= " t.note";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."projet_task_time as t";
|
||||
$sql .= " WHERE t.rowid = ".$id;
|
||||
$sql .= " WHERE t.rowid = ".((int) $id);
|
||||
|
||||
dol_syslog(get_class($this)."::fetchTimeSpent", LOG_DEBUG);
|
||||
$resql = $this->db->query($sql);
|
||||
|
||||
Reference in New Issue
Block a user