mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
Add unit tests for if="var" support in XML query
This commit is contained in:
parent
658a28dfd8
commit
ae0e13eca9
3 changed files with 67 additions and 1 deletions
|
|
@ -245,7 +245,11 @@ class Query extends VariableBase
|
|||
// Compose the ORDER BY clause.
|
||||
if ($this->navigation && count($this->navigation->orderby) && !$count_only)
|
||||
{
|
||||
$result .= ' ORDER BY ' . $this->_arrangeOrderBy($this->navigation);
|
||||
$order_by = $this->_arrangeOrderBy($this->navigation);
|
||||
if ($order_by !== '')
|
||||
{
|
||||
$result .= ' ORDER BY ' . $order_by;
|
||||
}
|
||||
}
|
||||
|
||||
// Compose the LIMIT/OFFSET clause.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue