Revize 540d2579
Přidáno uživatelem Ondřej Fibich před asi 9 roky(ů)
application/models/message.php | ||
---|---|---|
// order by check
|
||
if (!$this->has_column($order_by))
|
||
{
|
||
$order_by = 'id';
|
||
if ($order_by == 'message')
|
||
{
|
||
$order_by = 'name';
|
||
}
|
||
else
|
||
{
|
||
$order_by = 'id';
|
||
}
|
||
}
|
||
// order by direction check
|
||
if (strtolower($order_by_direction) != 'desc')
|
Také k dispozici: Unified diff
refs #1015: fix ordering in messages grid