Closed nesl247 closed 10 years ago
The fix is to change if(count($this->input['order'])>0)
to if(array_key_exists('order', $this->input) && count($this->input['order'])>0)
on line 448.
Fixed with #133 fix
Hi! Great work here! But I think it's not fixed yet. If ordering is set to false the error still appears:
error: {type:ErrorException, message:Undefined index: order,…}
file: ".../vendor/bllim/datatables/src/Bllim/Datatables/Datatables.php"
line: 498
message: "Undefined index: order"
type: "ErrorException"
The fix proposed by @nesl247 is working
OK, i didn't notice that nesl247 is writing about different line than in #133... Merged that change too.
New release with this fix is out now.
In DataTables, if you disable sort via
sort: false
, errors appear because this package is currently assuming that$this->input['order']
exists.