@@ -77,16 +77,14 @@ discard block |
||
77 | 77 | $reset = filter_has_var(INPUT_GET, 'col') ? 'asc' : null; |
78 | 78 | return |
79 | 79 | in_array(filter_input(INPUT_GET, 'ord'), ['asc', 'desc']) ? |
80 | - filter_input(INPUT_GET, 'ord') : |
|
81 | - ($reset ?: self::$t['order']['dir']); |
|
80 | + filter_input(INPUT_GET, 'ord') : ($reset ?: self::$t['order']['dir']); |
|
82 | 81 | }; |
83 | 82 | $order_col = function() |
84 | 83 | { |
85 | 84 | $col = filter_input(INPUT_GET, 'col', FILTER_VALIDATE_INT); |
86 | 85 | if ($col) { |
87 | 86 | return isset(self::$cols[$col][2]['sort']) ? |
88 | - self::$cols[$col][2]['sort'] : |
|
89 | - self::$cols[$col][1]; |
|
87 | + self::$cols[$col][2]['sort'] : self::$cols[$col][1]; |
|
90 | 88 | } |
91 | 89 | return self::$t['order']['col']; |
92 | 90 | }; |
@@ -111,8 +109,7 @@ discard block |
||
111 | 109 | $page = function() |
112 | 110 | { |
113 | 111 | return filter_has_var(INPUT_GET, 'pg') && self::$export == false ? |
114 | - (int)filter_input(INPUT_GET, 'pg', FILTER_SANITIZE_NUMBER_INT) : |
|
115 | - self::$t['page']; |
|
112 | + (int)filter_input(INPUT_GET, 'pg', FILTER_SANITIZE_NUMBER_INT) : self::$t['page']; |
|
116 | 113 | }; |
117 | 114 | |
118 | 115 | self::$export = $export(); |