Skip to content

Commit

Permalink
Fix missing include
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 17, 2019
1 parent 24cb139 commit 214bf43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions htdocs/exports/class/export.class.php
Expand Up @@ -637,6 +637,7 @@ public function build_file($user, $model, $datatoexport, $array_selected, $array
// Operation GETNUMOPENDAYS (for Holiday module)
elseif ($this->array_export_special[$indice][$key]=='getNumOpenDays')
{
include_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
//$alias=$this->array_export_alias[$indice][$key];
$alias=str_replace(array('.', '-','(',')'), '_', $key);
$obj->$alias=num_open_day(dol_stringtotime($obj->d_date_debut, 1), dol_stringtotime($obj->d_date_fin, 1), 0, 1, $obj->d_halfday, $mysoc->country_code);
Expand Down

0 comments on commit 214bf43

Please sign in to comment.