mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-09 12:02:24 +09:00
Fix warning when order_var is not set
This commit is contained in:
parent
cb7b6cbfde
commit
8ba0d351a0
1 changed files with 1 additions and 1 deletions
|
|
@ -620,7 +620,7 @@ class Query extends VariableBase
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get the ordering (ASC or DESC).
|
// Get the ordering (ASC or DESC).
|
||||||
if (preg_match('/^(ASC|DESC)$/i', $orderby->order_var, $matches))
|
if (preg_match('/^(ASC|DESC)$/i', $orderby->order_var ?: '', $matches))
|
||||||
{
|
{
|
||||||
$column_order = strtoupper($matches[1]);
|
$column_order = strtoupper($matches[1]);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue