From fbd9a90cfec5d00c1c42bb02009c1df6124062db Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Tue, 8 Aug 2017 19:57:34 +0200 Subject: [PATCH] Filter out some items --- class/teachings.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/class/teachings.class.php b/class/teachings.class.php index b88ceb0..9af9ce6 100644 --- a/class/teachings.class.php +++ b/class/teachings.class.php @@ -43,8 +43,7 @@ class Teachings { { $html = ''; foreach ($this->list as $row) { - error_log($row->location); - if ($row->location != 'Linuxhotel GmbH') continue; + if (strpos($row->location, 'Linuxhotel GmbH') === false) continue; $dstart = explode('-', $row->start); $dend = explode('-', $row->end); @@ -75,6 +74,7 @@ class Teachings { . '' . ''; } + return $html; } } -- 2.20.1