Fix: bad value in delete last line
This commit is contained in:
parent
e8db356549
commit
b2d33e0806
@ -970,7 +970,7 @@ class FichinterLigne
|
|||||||
{
|
{
|
||||||
$obj=$this->db->fetch_object($resql);
|
$obj=$this->db->fetch_object($resql);
|
||||||
$total_duration=0;
|
$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 = "UPDATE ".MAIN_DB_PREFIX."fichinter";
|
||||||
$sql.= " SET duree = ".$total_duration;
|
$sql.= " SET duree = ".$total_duration;
|
||||||
|
|||||||
@ -136,6 +136,7 @@ function dol_loginfunction($langs,$conf,$mysoc)
|
|||||||
$demopassword=$tab[1];
|
$demopassword=$tab[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Entity cookie
|
||||||
if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY))
|
if (! empty($conf->global->MAIN_MODULE_MULTICOMPANY))
|
||||||
{
|
{
|
||||||
$lastuser = '';
|
$lastuser = '';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user