Untypo
[infodrom.org/infocon.infodrom.org] / class / teachings.class.php
index f7d80cb..9af9ce6 100644 (file)
@@ -43,8 +43,7 @@ class Teachings {
   {
     $html = '';
     foreach ($this->list as $row) {
   {
     $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);
 
       $dstart = explode('-', $row->start);
       $dend = explode('-', $row->end);
@@ -57,7 +56,7 @@ class Teachings {
       $link = strlen($row->url) ? sprintf('<a href="%s">Details / Buchen</a>', $row->url) : '';
       $html .= sprintf('<tr><td>%s</td><td>%s</td><td>%s</td></tr>',
                       $date,
       $link = strlen($row->url) ? sprintf('<a href="%s">Details / Buchen</a>', $row->url) : '';
       $html .= sprintf('<tr><td>%s</td><td>%s</td><td>%s</td></tr>',
                       $date,
-                      $row->title,
+                      str_replace('\\', '', $row->title),
                       $link);
     }
 
                       $link);
     }
 
@@ -75,6 +74,7 @@ class Teachings {
        . '</tbody>'
        . '</table>';
     }
        . '</tbody>'
        . '</table>';
     }
+
     return $html;
   }
 }
     return $html;
   }
 }