mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:25:55 +00:00
pref-users: fix sorting the table
This commit is contained in:
@@ -2548,6 +2548,13 @@
|
||||
return $bad_tables;
|
||||
}
|
||||
|
||||
function validate_field($string, $allowed, $default = "") {
|
||||
if (in_array($string, $allowed))
|
||||
return $string;
|
||||
else
|
||||
return $default;
|
||||
}
|
||||
|
||||
function arr_qmarks($arr) {
|
||||
return str_repeat('?,', count($arr) - 1) . '?';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user