diff --git a/resources/functions.php b/resources/functions.php index 145ead7512..408b700e2d 100644 --- a/resources/functions.php +++ b/resources/functions.php @@ -284,7 +284,7 @@ if (!function_exists('if_superadmin')) { function if_superadmin($superadmin_list, $user_uuid) { if (stripos($superadmin_list, "||".$user_uuid."||") === false) { - return false; //user_uuid does not exist + return false; } else { return true; //user_uuid exists @@ -296,12 +296,14 @@ function html_select_other($table_name, $field_name, $sql_where_optional, $field_current_value) { //html select other: build a select box from distinct items in db with option for other global $domain_uuid; + $table_name = preg_replace("#[^a-zA-Z0-9_]#", "", $table_name); + $field_name = preg_replace("#[^a-zA-Z0-9_]#", "", $field_name); $html = "