Skip to content
Snippets Groups Projects
Commit 609aa9b6 authored by Robert Anderson's avatar Robert Anderson
Browse files

Improved formatting

parent 45d80844
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,15 @@ function getAdminUserAttributes($params) {
'Disabled' => 'user_attributes.Disabled'
);
$res = DBSelectSearch("SELECT ID, Name, Operator, Value, Disabled FROM user_attributes WHERE UserID = $params[0]",$params[1],$filtersorts,$filtersorts);
$res = DBSelectSearch("
SELECT
ID, Name, Operator, Value, Disabled
FROM
user_attributes
WHERE
UserID = ".DBQuote($params[0])."
",$params[1],$filtersorts,$filtersorts);
$sth = $res[0]; $numResults = $res[1];
# If STH is blank, return the error back to whoever requested the data
if (!isset($sth)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment