mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-08 02:28:23 +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;
|
||||
|
||||
@@ -136,6 +136,7 @@ function dol_loginfunction($langs,$conf,$mysoc)
|
||||
$demopassword=$tab[1];
|
||||
}
|
||||
|
||||
// Entity cookie
|
||||
if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY))
|
||||
{
|
||||
$lastuser = '';
|
||||
|
||||
Reference in New Issue
Block a user