diff --git a/.datatables-commit-sync b/.datatables-commit-sync index 9b4ba7b9..94bbb3c9 100644 --- a/.datatables-commit-sync +++ b/.datatables-commit-sync @@ -1 +1 @@ -7925dbe9b9a30dd339898670926e3fe89cd2db15 +91a3581a1c030835bead900b938ef07840f44ca5 diff --git a/media/js/jquery.dataTables.js b/media/js/jquery.dataTables.js index 6cc8cfe2..61ab89d9 100644 --- a/media/js/jquery.dataTables.js +++ b/media/js/jquery.dataTables.js @@ -8841,7 +8841,7 @@ // Simple column / direction passed in order = [ [ order, dir ] ]; } - else if ( ! $.isArray( order[0] ) ) { + else if ( order.length && ! $.isArray( order[0] ) ) { // Arguments passed in (list of 1D arrays) order = Array.prototype.slice.call( arguments ); } diff --git a/media/js/jquery.dataTables.min.js b/media/js/jquery.dataTables.min.js index 4750d8d8..c47c3757 100644 --- a/media/js/jquery.dataTables.min.js +++ b/media/js/jquery.dataTables.min.js @@ -127,7 +127,7 @@ n;i++)l=j[i].nTr,f=j[i].anCells,l&&l.insertBefore(f[c],f[m]||null)}else h(G(b.ao j)),l,n=b.aoColumns.length,m,p,r,u,v,s;return $a("cell",d,function(a){var c=typeof a==="function";if(a===null||a===k||c){m=[];p=0;for(r=g.length;p