mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
make sql state more compatible across databases
This commit is contained in:
parent
b6d63b8705
commit
4cc7bfca20
|
@ -756,7 +756,7 @@ class SeedDMS_Core_DMS {
|
||||||
// Only search if the offset is not beyond the number of folders
|
// Only search if the offset is not beyond the number of folders
|
||||||
if($totalFolders > $offset) {
|
if($totalFolders > $offset) {
|
||||||
// Prepare the complete search query, including the LIMIT clause.
|
// Prepare the complete search query, including the LIMIT clause.
|
||||||
$searchQuery = "SELECT DISTINCT `tblFolders`.* ".$searchQuery." GROUP BY `tblFolders`.`id`";
|
$searchQuery = "SELECT DISTINCT `tblFolders`.`id` ".$searchQuery." GROUP BY `tblFolders`.`id`";
|
||||||
|
|
||||||
if($limit) {
|
if($limit) {
|
||||||
$searchQuery .= " LIMIT ".$limit." OFFSET ".$offset;
|
$searchQuery .= " LIMIT ".$limit." OFFSET ".$offset;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user