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

Commit

Permalink
Fix string chopping
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshi2889 <[email protected]>
  • Loading branch information
NanoSector committed Aug 17, 2017
1 parent 5c0890d commit 1d89beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Aggregator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 1d89beb

Please sign in to comment.