From da39612a0bfcac763108c8fbd3acefa324b1a40e Mon Sep 17 00:00:00 2001 From: Promofaux Date: Sun, 1 Jan 2017 19:57:43 +0000 Subject: [PATCH] replace double spaces with single spaces before exploding line to array --- scripts/pi-hole/php/data.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/php/data.php b/scripts/pi-hole/php/data.php index ad24e57e..82bff563 100644 --- a/scripts/pi-hole/php/data.php +++ b/scripts/pi-hole/php/data.php @@ -440,7 +440,7 @@ $log->rewind(); $lines = []; foreach ($log as $line) { - $exploded = explode(" ", $line); + $exploded = explode(" ", str_replace(" "," ",$line)); if(count($exploded) == 8 || count($exploded) == 10) { // Structure of data is currently like: // Array