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:
nate 2007-04-17 07:03:20 +00:00
parent e5b0f2e3fa
commit 11c5e916b8

View file

@ -156,6 +156,8 @@ class PaginatorHelper extends AppHelper {
* null if the results are not currently sorted.
*/
function sortDir($model = null, $options = array()) {
$dir = null;
if (empty($options)) {
$params = $this->params($model);
$options = am($params['defaults'], $params['options']);