Commit 6c2ef404 authored by alissonalbuquerque's avatar alissonalbuquerque
Browse files
parents fb75ebce debb3a9b
...@@ -31,6 +31,8 @@ ...@@ -31,6 +31,8 @@
$weekColumns = []; $weekColumns = [];
$COLUMN_NAN = 'NaN';
$max_len_column = 0; $max_len_column = 0;
foreach (array_keys(TaskTime::listWeekDays()) as $weekday) { foreach (array_keys(TaskTime::listWeekDays()) as $weekday) {
...@@ -46,7 +48,7 @@ ...@@ -46,7 +48,7 @@
foreach (range(0, $max_len_column-1) as $i) { foreach (range(0, $max_len_column-1) as $i) {
$row = []; $row = [];
foreach (array_keys(TaskTime::listWeekDays()) as $weekday) { foreach (array_keys(TaskTime::listWeekDays()) as $weekday) {
isset($weekColumns[$weekday][$i]) ? array_push($row, $weekColumns[$weekday][$i]) : array_push($row, null); isset($weekColumns[$weekday][$i]) ? array_push($row, $weekColumns[$weekday][$i]) : array_push($row, $COLUMN_NAN);
} }
$calendar[] = $row; $calendar[] = $row;
} }
...@@ -88,7 +90,7 @@ ...@@ -88,7 +90,7 @@
</div> </div>
</div> </div>
@else @else
@endif @endif
</td> </td>
@endif @endif
...@@ -120,4 +122,4 @@ ...@@ -120,4 +122,4 @@
'btn_class' => 'btn-edit_task', 'btn_class' => 'btn-edit_task',
]) ])
@endsection @endsection
\ No newline at end of file
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