Skip to content

Commit

Permalink
The 'value' and 'field' always need to be lower.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpereira committed Jul 21, 2015
1 parent 534778c commit 06802cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions class.DhcpdLeases.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public function __destruct()
*/
function setFilter($field, $value)
{
$this->filter_field = $field;
$this->filter_value = $value;
$this->filter_field = strtolower($field);
$this->filter_value = strtolower($value);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion example.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
//$hw = $_GET['hw'];
$hw = "ac:65:c0:c4:d7:18");

$dl->setFilter("hardware-ethernet", strtolower($mac));
$dl->setFilter("hardware-ethernet", $mac);

header("Content-Type: application/json");

Expand Down

0 comments on commit 06802cd

Please sign in to comment.