Skip to content

Commit

Permalink
Fix: If end date is not defined, we can't say it is too late.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 15, 2014
1 parent 9aacb0e commit af4d48a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/fourn/class/fournisseur.facture.class.php
Expand Up @@ -1378,7 +1378,7 @@ function load_board($user)
while ($obj=$this->db->fetch_object($resql))
{
$this->nbtodo++;
if ($this->db->jdate($obj->datefin) < ($now - $conf->facture->fournisseur->warning_delay)) $this->nbtodolate++;
if (! empty($obj->datefin) && $this->db->jdate($obj->datefin) < ($now - $conf->facture->fournisseur->warning_delay)) $this->nbtodolate++;
}
$this->db->free($resql);
return 1;
Expand Down

0 comments on commit af4d48a

Please sign in to comment.