mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update
This commit is contained in:
parent
51fbd37f91
commit
34039647a3
4 changed files with 10 additions and 8 deletions
|
@ -237,3 +237,10 @@ function lockForUpdate($tableName, $condition)
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function setDefaultSort($defaultSortColumn, $defaultSortOrder)
|
||||
{
|
||||
if (empty($_REQUEST['sort']) && empty($_GET['sort']) && empty($_POST['sort']) && empty($_GET['order'][0]['dir'])) {
|
||||
$_POST['sort'][$defaultSortColumn] = $defaultSortOrder;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue