Skip to content

Commit

Permalink
Fix - examples: PHP demo script could use invalid SQL if an orderable…
Browse files Browse the repository at this point in the history
…:false column was ordered upon

- Thread 45150
  • Loading branch information
Allan Jardine committed Jun 14, 2018
1 parent 713b749 commit 81218f4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .datatables-commit-sync
@@ -1 +1 @@
2b7c6705489fb30aefc5d25612e3860b781120b7
0dd92d97b21e773487aafd20d800cb43a38ff5b4
4 changes: 3 additions & 1 deletion examples/server_side/scripts/ssp.class.php
Expand Up @@ -135,7 +135,9 @@ static function order ( $request, $columns )
}
}

$order = 'ORDER BY '.implode(', ', $orderBy);
if ( count( $orderBy ) ) {
$order = 'ORDER BY '.implode(', ', $orderBy);
}
}

return $order;
Expand Down
6 changes: 3 additions & 3 deletions media/js/dataTables.bootstrap4.js
@@ -1,9 +1,9 @@
/*! DataTables Bootstrap 4 integration
* ©2011-2017 SpryMedia Ltd - datatables.net/license
/*! DataTables Bootstrap 3 integration
* ©2011-2015 SpryMedia Ltd - datatables.net/license
*/

/**
* DataTables integration for Bootstrap 4. This requires Bootstrap 4 and
* DataTables integration for Bootstrap 3. This requires Bootstrap 3 and
* DataTables 1.10 or newer.
*
* This file sets the defaults and adds options to DataTables to style its
Expand Down
4 changes: 2 additions & 2 deletions media/js/dataTables.bootstrap4.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 81218f4

Please sign in to comment.