File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -83,11 +83,15 @@ public function processData($input = [])
83
83
if (isset ($ input ['draw ' ])) {
84
84
// DT version 1.10+
85
85
86
+ $ input ['version ' ] = '1.10 ' ;
87
+
86
88
$ formatted_input = $ input ;
87
89
88
90
} else {
89
91
// DT version < 1.10
90
92
93
+ $ formatted_input ['version ' ] = '1.9 ' ;
94
+
91
95
$ formatted_input ['draw ' ] = Arr::get ($ input , 'sEcho ' , '' );
92
96
$ formatted_input ['start ' ] = Arr::get ($ input , 'iDisplayStart ' , 0 );
93
97
$ formatted_input ['length ' ] = Arr::get ($ input , 'iDisplayLength ' , 10 );
@@ -1014,7 +1018,7 @@ protected function getColumnName($str)
1014
1018
*/
1015
1019
protected function output ($ raw = false )
1016
1020
{
1017
- if (Arr::get ($ this ->input , 'draw ' , false ) ) {
1021
+ if (Arr::get ($ this ->input , 'version ' ) == ' 1.10 ' ) {
1018
1022
1019
1023
$ output = array (
1020
1024
"draw " => intval ($ this ->input ['draw ' ]),
You can’t perform that action at this time.
0 commit comments