diff options
author | robocoder <anthon.pang@gmail.com> | 2012-05-12 21:32:50 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2012-05-12 21:32:50 +0400 |
commit | 85452059484be2b9a8f3784c2326cd220ef3aedb (patch) | |
tree | 8437a65711c99e8ce14d072d41eb2bca2ae35aac /core/DataTable/Filter/RangeCheck.php | |
parent | 1909221b2c0fe31a77d6a297c06312a015fa7a7a (diff) |
refs #2962
git-svn-id: http://dev.piwik.org/svn/trunk@6262 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/DataTable/Filter/RangeCheck.php')
-rw-r--r-- | core/DataTable/Filter/RangeCheck.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/DataTable/Filter/RangeCheck.php b/core/DataTable/Filter/RangeCheck.php index 44b862f9be..37aead18fc 100644 --- a/core/DataTable/Filter/RangeCheck.php +++ b/core/DataTable/Filter/RangeCheck.php @@ -21,13 +21,16 @@ class Piwik_DataTable_Filter_RangeCheck extends Piwik_DataTable_Filter static public $minimumValue = 0.00; static public $maximumValue = 100.0; - public function __construct( $table, $columnToFilter, $minimumValue, $maximum ) + public function __construct( $table, $columnToFilter, $minimumValue = 0.00, $maximumValue = 100.0 ) { parent::__construct($table); $this->columnToFilter = $columnToFilter; - self::$minimumValue = $minimumValue; - self::$maximumValue = $maximumValue; + + if ($minimumValue < $maximumValue) { + self::$minimumValue = $minimumValue; + self::$maximumValue = $maximumValue; + } } public function filter($table) |