mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Make sure we don't pass a bad sort value to app code
This commit is contained in:
parent
509482e81c
commit
a9aeabeeb1
@ -153,6 +153,12 @@ class etemplate_widget_nextmatch extends etemplate_widget
|
||||
// Make sure it's not set
|
||||
unset($send_value['favorite']);
|
||||
|
||||
// Parse sort into something that get_rows functions are expecting: db_field in order, ASC/DESC in sort
|
||||
if(is_array($send_value['sort']))
|
||||
{
|
||||
$send_value['order'] = $send_value['sort']['id'];
|
||||
$send_value['sort'] = $send_value['sort']['asc'] ? 'ASC' : 'DESC';
|
||||
}
|
||||
$total = self::call_get_rows($send_value, $send_value['rows'], self::$request->readonlys);
|
||||
$value =& self::get_array(self::$request->content, $form_name, true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user