mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-04 08:02:22 +01:00
Fix: bad value in delete last line
This commit is contained in:
@@ -970,7 +970,7 @@ class FichinterLigne
|
||||
{
|
||||
$obj=$this->db->fetch_object($resql);
|
||||
$total_duration=0;
|
||||
if ($obj) $total_duration = $obj->total_duration;
|
||||
if (!empty($obj->total_duration)) $total_duration = $obj->total_duration;
|
||||
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."fichinter";
|
||||
$sql.= " SET duree = ".$total_duration;
|
||||
|
||||
Reference in New Issue
Block a user