Skip to content

Commit

Permalink
Removing all new-lines (\n) from the result.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpereira committed May 13, 2015
1 parent ae5ea8d commit cf2a1c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions class.DhcpdLeases.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ function process()
isset($arr['client-hostname']))
)
{
if ($this->filter_value == $arr[$this->filter_field])
$this->row_array[] = $arr;
elseif (!$this->filter_field && !$this->filter_value)
$this->row_array[] = $arr;
if ($this->filter_value == $arr[$this->filter_field] ||
!$this->filter_field && !$this->filter_value) {
$this->row_array[] = str_replace("\n", "", $arr);
}
}
}
}
Expand Down

0 comments on commit cf2a1c3

Please sign in to comment.