1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00
This commit is contained in:
Daniel Neto 2024-03-18 10:00:54 -03:00
parent 51fbd37f91
commit 34039647a3
4 changed files with 10 additions and 8 deletions

View file

@ -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;
}
}