Skip to content
This repository was archived by the owner on Mar 1, 2023. It is now read-only.

Commit 1d89beb

Browse files
committed
Fix string chopping
Signed-off-by: Yoshi2889 <[email protected]>
1 parent 5c0890d commit 1d89beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Aggregator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ public function createSearchResultString(SearchResult $searchResult): string
317317
{
318318
$description = str_replace("\n", ' ', str_replace("\r", "\n", $description));
319319

320-
if (strlen($description > 150))
320+
if (strlen($description) > 150)
321321
$str .= substr($description, 0, 150) . '...';
322322
else
323323
$str .= $description;

0 commit comments

Comments
 (0)