Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -148,7 +148,7 @@ class _Db extends Table
|
||||
$type = $type[0];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
switch ( $type )
|
||||
{
|
||||
case SEARCH_CUSTOM:
|
||||
@@ -373,7 +373,10 @@ class _Db extends Table
|
||||
$orderBy = "{$this->primarySortBy} {$this->primarySortDirection}, {$orderBy}";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Are we downloading? Bypass Table Limit */
|
||||
$limit = \IPS\Request::i()->download ? $count : $this->limit;
|
||||
|
||||
/* Run query */
|
||||
$rows = array();
|
||||
$select = $this->db->select(
|
||||
@@ -381,7 +384,7 @@ class _Db extends Table
|
||||
$this->table,
|
||||
$where,
|
||||
$orderBy,
|
||||
array( ( $this->limit * ( $this->page - 1 ) ), $this->limit )
|
||||
array( ( $this->limit * ( $this->page - 1 ) ), $limit )
|
||||
);
|
||||
|
||||
if ( $this->index )
|
||||
|
||||
Reference in new issue
Block a user