|
@@ -20,14 +20,14 @@ |
|
|
block discarded – undo |
|
20
|
20
|
return false; |
|
21
|
21
|
} |
|
22
|
22
|
|
|
23
|
|
- $query = 'SELECT Id, Name, Email, UserType, UserRoleId FROM ' . $this->getType() . ' WHERE '; |
|
|
23
|
+ $query = 'SELECT Id, Name, Email, UserType, UserRoleId FROM '.$this->getType().' WHERE '; |
|
24
|
24
|
|
|
25
|
25
|
$paramsWithKeys = []; |
|
26
|
26
|
foreach ($params as $fieldName => $fieldValue) { |
|
27
|
|
- $paramsWithKeys[] = $fieldName . ' = \'' . addslashes(trim($fieldValue)) . '\''; |
|
|
27
|
+ $paramsWithKeys[] = $fieldName.' = \''.addslashes(trim($fieldValue)).'\''; |
|
28
|
28
|
} |
|
29
|
29
|
|
|
30
|
|
- $query .= '(' . implode(' ' . $condition . ' ', $paramsWithKeys) . ')'; |
|
|
30
|
+ $query .= '('.implode(' '.$condition.' ', $paramsWithKeys).')'; |
|
31
|
31
|
|
|
32
|
32
|
$response = $this->query($query); |
|
33
|
33
|
|
Please login to merge, or discard this patch.