From 0aa385449556b9ea0fa8abe12729fab88ce6a254 Mon Sep 17 00:00:00 2001 From: L_DA Date: Sat, 2 Jan 2021 15:48:21 +0100 Subject: [PATCH] Variable week converted to int --- README.md | 0 classes/timetable.php | 2 +- doc/.gitkeep | 0 doc/timetable_search.png | Bin doc/timetable_search_small.png | Bin doc/timetable_searchresults.png | Bin doc/timetable_searchresults_small.png | Bin 7 files changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 README.md mode change 100644 => 100755 doc/.gitkeep mode change 100644 => 100755 doc/timetable_search.png mode change 100644 => 100755 doc/timetable_search_small.png mode change 100644 => 100755 doc/timetable_searchresults.png mode change 100644 => 100755 doc/timetable_searchresults_small.png diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/classes/timetable.php b/classes/timetable.php index 5573ddd..8990cfb 100755 --- a/classes/timetable.php +++ b/classes/timetable.php @@ -114,7 +114,7 @@ class timetable { $this->monday->sub(new \DateInterval("P".($dayofweek-1)."D")); } - $this->week = $this->monday->format("W"); + $this->week = intval($this->monday->format("W")); $this->lastday = new \DateTime($this->monday->format('Y-m-d\TH:i:sP')); $this->lastday->add(new \DateInterval("P".($this->numdayweek-1)."D")); diff --git a/doc/.gitkeep b/doc/.gitkeep old mode 100644 new mode 100755 diff --git a/doc/timetable_search.png b/doc/timetable_search.png old mode 100644 new mode 100755 diff --git a/doc/timetable_search_small.png b/doc/timetable_search_small.png old mode 100644 new mode 100755 diff --git a/doc/timetable_searchresults.png b/doc/timetable_searchresults.png old mode 100644 new mode 100755 diff --git a/doc/timetable_searchresults_small.png b/doc/timetable_searchresults_small.png old mode 100644 new mode 100755