From 612c2caeed437709d7af74dfd5efe3178dfe9ae4 Mon Sep 17 00:00:00 2001 From: Fbenas Date: Sat, 5 Dec 2015 19:53:57 +0000 Subject: Removed multiline output. --- search.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/search.php b/search.php index 370c25e..c4db438 100644 --- a/search.php +++ b/search.php @@ -76,7 +76,7 @@ try { } // Return results - $out = ""; + $out = []; if (empty($results)) { echo "No results found\n"; } else { @@ -93,15 +93,15 @@ try { $i++; continue; } - $out .= $result . "\n"; + $out[] = $result; $i++; } if ($count > 3) { - $out .= " - results (" . $count . ")\n"; + $out[] = "results (" . $count . ")"; } } - echo $out; + echo implode(" - ", $out); } catch (Exception $e) { echo $e->getMessage() . "\n";die(); -- cgit v1.2.3