mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
#236 XML query error if the list_count's default value is not specified
This commit is contained in:
parent
da9ea35707
commit
e9d7e0b1ce
1 changed files with 6 additions and 0 deletions
|
|
@ -44,12 +44,18 @@ class LimitTag
|
|||
{
|
||||
if($index->page && $index->page->attrs && $index->page_count && $index->page_count->attrs)
|
||||
{
|
||||
if(!isset($index->page->attrs->default))
|
||||
$index->page->attrs->default = 1;
|
||||
if(!isset($index->page_count->attrs->default))
|
||||
$index->page_count->attrs->default = 10;
|
||||
$this->page = new QueryArgument($index->page);
|
||||
$this->page_count = new QueryArgument($index->page_count);
|
||||
$this->arguments[] = $this->page;
|
||||
$this->arguments[] = $this->page_count;
|
||||
}
|
||||
|
||||
if(!isset($index->list_count->attrs->default))
|
||||
$index->list_count->attrs->default = 0;
|
||||
$this->list_count = new QueryArgument($index->list_count);
|
||||
$this->arguments[] = $this->list_count;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue