diff --git a/db_objects/service.class.php b/db_objects/service.class.php index 46fd390b..73d03a1d 100644 --- a/db_objects/service.class.php +++ b/db_objects/service.class.php @@ -494,7 +494,7 @@ function getInstancesData($params, $logic='OR', $order='') public function replaceKeywords($text) { $matches = Array(); - preg_match_all('/%([a-zA-Z0-9#_\/]*)%/', $text, $matches); + preg_match_all('/%([a-zA-Z0-9#_\/]*)%/', (string)$text, $matches); foreach ($matches[1] as $keyword) { $text = str_replace('%'.$keyword.'%', $this->getKeywordReplacement($keyword), $text); } @@ -733,7 +733,7 @@ class="table table-bordered table-condensed table-full-width run-sheet no-narrow $title = str_replace('%title%', $item['title'], $title); $title = $this->replaceKeywords($title); echo ents($title); - if ($item['note']) echo '