Filter out some items
authorJoey Schulze <joey@infodrom.org>
Tue, 8 Aug 2017 17:57:34 +0000 (19:57 +0200)
committerJoey Schulze <joey@infodrom.org>
Tue, 8 Aug 2017 17:57:34 +0000 (19:57 +0200)
class/teachings.class.php

index b88ceb0..9af9ce6 100644 (file)
@@ -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 {
        . '</tbody>'
        . '</table>';
     }
+
     return $html;
   }
 }