mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Issue 1890 - Board list index numbers are scrambled
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10559 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
592e45e754
commit
0667704d6f
1 changed files with 4 additions and 2 deletions
|
|
@ -680,7 +680,9 @@
|
|||
}
|
||||
$limit = $queryObject->getLimit();
|
||||
if ($limit && $limit->isPageHandler())
|
||||
{
|
||||
return $this->queryPageLimit($queryObject, $connection, $with_values);
|
||||
}
|
||||
else {
|
||||
$query = $this->getSelectSql($queryObject, $with_values);
|
||||
if (is_a($query, 'Object'))
|
||||
|
|
@ -723,11 +725,11 @@
|
|||
if ($queryObject->getGroupByString() != '') {
|
||||
$count_query = sprintf('select count(*) as "count" from (%s) xet', $count_query);
|
||||
}
|
||||
|
||||
|
||||
$count_query .= (__DEBUG_QUERY__&1 && $queryObject->query_id)?sprintf (' '.$this->comment_syntax, $this->query_id):'';
|
||||
$result = $this->_query($count_query, $connection);
|
||||
$count_output = $this->_fetch($result);
|
||||
$total_count = (int)(isset($count_output->output) ? $count_output->count : NULL);
|
||||
$total_count = (int)(isset($count_output->count) ? $count_output->count : NULL);
|
||||
|
||||
$list_count = $limit->list_count->getValue();
|
||||
if (!$list_count) $list_count = 20;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue