mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Adding undefined variable fix for PaginatorHelper::sortDir() (Ticket #2440)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4868 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
e5b0f2e3fa
commit
11c5e916b8
1 changed files with 2 additions and 0 deletions
|
@ -156,6 +156,8 @@ class PaginatorHelper extends AppHelper {
|
||||||
* null if the results are not currently sorted.
|
* null if the results are not currently sorted.
|
||||||
*/
|
*/
|
||||||
function sortDir($model = null, $options = array()) {
|
function sortDir($model = null, $options = array()) {
|
||||||
|
$dir = null;
|
||||||
|
|
||||||
if (empty($options)) {
|
if (empty($options)) {
|
||||||
$params = $this->params($model);
|
$params = $this->params($model);
|
||||||
$options = am($params['defaults'], $params['options']);
|
$options = am($params['defaults'], $params['options']);
|
||||||
|
|
Loading…
Add table
Reference in a new issue