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

Commit

Permalink
URBD: Return empty array if no result found
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshi2889 <[email protected]>
  • Loading branch information
NanoSector committed Aug 13, 2017
1 parent 82b9fc1 commit 5c0890d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sources/UrbanDictionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function search(string $searchterm)
$topResultNetto = $netto;
}

return [$topResult];
return $topResult ? [$topResult] : [];
}

/**
Expand Down

0 comments on commit 5c0890d

Please sign in to comment.