Collections Functions
Encryption Functions
General Functions
Theme Permission Functions
Resource Functions

check_order_by_in_table_joins()

Description

If a "fieldX" order_by is used, check it's a valid value

Parameters

ColumnTypeDefaultDescription
$order_by
string string of order by

Location

include/search_functions.php lines 2882 to 2890

Definition

 
function check_order_by_in_table_joins($order_by)
    {
    global 
$lang;

    if (
substr($order_by,0,5)=="field" && !in_array(substr($order_by,5),get_resource_table_joins()))
        {
        exit(
$lang['error_invalid_input'] . ":- <pre>order_by : " htmlspecialchars($order_by) . "</pre>");
        }
    }

This article was last updated 13th August 2020 01:05 Europe/London time based on the source file dated 12th August 2020 10:05 Europe/London time.