// Clean code
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12861 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -121,8 +121,8 @@ class StatsBestVouchers extends ModuleGrid
|
|||||||
if (Validate::IsName($this->_sort))
|
if (Validate::IsName($this->_sort))
|
||||||
{
|
{
|
||||||
$this->_query .= ' ORDER BY `'.$this->_sort.'`';
|
$this->_query .= ' ORDER BY `'.$this->_sort.'`';
|
||||||
if (isset($this->_direction))
|
if (isset($this->_direction) && (strtoupper($this->_direction) == 'ASC' || strtoupper($this->_direction) == 'DESC'))
|
||||||
$this->_query .= ' '.$this->_direction;
|
$this->_query .= ' '.pSQL($this->_direction);
|
||||||
}
|
}
|
||||||
if (($this->_start === 0 || Validate::IsUnsignedInt($this->_start)) && Validate::IsUnsignedInt($this->_limit))
|
if (($this->_start === 0 || Validate::IsUnsignedInt($this->_start)) && Validate::IsUnsignedInt($this->_limit))
|
||||||
$this->_query .= ' LIMIT '.$this->_start.', '.($this->_limit);
|
$this->_query .= ' LIMIT '.$this->_start.', '.($this->_limit);
|
||||||
|
|||||||
Reference in New Issue
Block a user