From 1d89beb083cfc4f67ea6f2079a2bf3fd48a36678 Mon Sep 17 00:00:00 2001 From: Yoshi2889 Date: Thu, 17 Aug 2017 23:14:20 +0200 Subject: [PATCH] Fix string chopping Signed-off-by: Yoshi2889 --- src/Aggregator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Aggregator.php b/src/Aggregator.php index b8a67e4..b1f7670 100755 --- a/src/Aggregator.php +++ b/src/Aggregator.php @@ -317,7 +317,7 @@ public function createSearchResultString(SearchResult $searchResult): string { $description = str_replace("\n", ' ', str_replace("\r", "\n", $description)); - if (strlen($description > 150)) + if (strlen($description) > 150) $str .= substr($description, 0, 150) . '...'; else $str .= $description;