| @@ 141-148 (lines=8) @@ | ||
| 138 | $number_of_items = intval($number_of_items); |
|
| 139 | ||
| 140 | //forcing this order |
|
| 141 | if (!isset($direction)) { |
|
| 142 | $column = 3; |
|
| 143 | $direction = 'DESC'; |
|
| 144 | } else { |
|
| 145 | $column = intval($column); |
|
| 146 | if (!in_array($direction, array('ASC', 'DESC'))) |
|
| 147 | $direction = 'ASC'; |
|
| 148 | } |
|
| 149 | ||
| 150 | $keyword = Session::read('message_search_keyword'); |
|
| 151 | $keywordCondition = ''; |
|
| @@ 881-888 (lines=8) @@ | ||
| 878 | { |
|
| 879 | $from = intval($from); |
|
| 880 | $number_of_items = intval($number_of_items); |
|
| 881 | if (!isset($direction)) { |
|
| 882 | $column = 3; |
|
| 883 | $direction = 'DESC'; |
|
| 884 | } else { |
|
| 885 | $column = intval($column); |
|
| 886 | if (!in_array($direction, array('ASC', 'DESC'))) |
|
| 887 | $direction = 'ASC'; |
|
| 888 | } |
|
| 889 | $table_message = Database::get_main_table(TABLE_MESSAGE); |
|
| 890 | $request = api_is_xml_http_request(); |
|
| 891 | ||