mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-09 02:58: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);
|
$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 = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user