Commit 096e3e8a authored by Bate's avatar Bate

Planning2

parent 212c625c
......@@ -121,7 +121,11 @@ class planningv extends stdcontents
return;
}
$gaps = $this->planning->get_gaps($start, $end);
$gaps = null;
if($this->planning->weekly)
$gaps = $this->planning->get_gaps($start, $end);
else
$gaps = $this->planning->get_gaps(null, null);
$gaps_data = array();
while( list( $gap_id, $gap_start, $gap_end, $gap_name, $gap_count) = $gaps->get_row())
......@@ -139,6 +143,7 @@ class planningv extends stdcontents
return;
}
$gaps_time = null;
if($this->planning->weekly)
$gaps_time = $this->planning->get_gaps_time($start, $end);
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment