Skip to content

Commit

Permalink
Fixes pi-hole#150
Browse files Browse the repository at this point in the history
During the beginning of the month with the log having two spaces between Month & Day we get 9 values back instead of 8.  Stripping double spaces fixes.  E.G. `Oct  1` comapred to `Sep 26`
  • Loading branch information
diginc authored Oct 1, 2016
1 parent 68fa76f commit b372c2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions data.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ function findQueries($var) {
}

function findAds($var) {
$var = preg_replace('/ {2,}/', ' ', $var);
$exploded = explode(" ", $var);
if(count($exploded) == 8) {
$tmp = $exploded[count($exploded) - 4];
Expand Down

0 comments on commit b372c2e

Please sign in to comment.