Skip to content

Commit

Permalink
Merge pull request #3 from onysko/master
Browse files Browse the repository at this point in the history
Use default $_GET array as $getParams parameter
  • Loading branch information
vitalyiegorov committed May 7, 2015
2 parents 2754488 + 4aff457 commit 97daf7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pager.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function __construct(
// Рассчитаем параметры вывода
$this->update($rowsCount);

$this->getParams = $getParams;
$this->getParams = !empty($getParams) ? $getParams : $_GET;
}

/**
Expand Down

0 comments on commit 97daf7b

Please sign in to comment.