Fix file not always defined

This commit is contained in:
Laurent Destailleur 2017-09-30 11:51:34 +02:00
parent 0e15aef44f
commit 0feae17ef5

View File

@ -122,6 +122,8 @@ class pdf_paiement
$month = sprintf("%02d",$month); $month = sprintf("%02d",$month);
$year = sprintf("%04d",$year); $year = sprintf("%04d",$year);
$file = $dir . "/payments-".$year."-".$month.".pdf";
switch ($this->doc_type) { switch ($this->doc_type) {
case "client": case "client":
$file = $dir . "/payments-".$year."-".$month.".pdf"; $file = $dir . "/payments-".$year."-".$month.".pdf";