Commit b44eb79c authored by Son Nguyen's avatar Son Nguyen
Browse files

Fix not using brackets for table name (Bug #1190186)



Change-Id: I1b6048b2029f5964cf6ee96f6a44de5d5c4c3aaa
Signed-off-by: default avatarSon Nguyen <son.nguyen@catalyst.net.nz>
parent 7caf8e3e
......@@ -162,7 +162,7 @@ else if ($selected == 'loginaslog') {
$ph = array_merge($userids, $userids);
$log = get_records_sql_array('
SELECT *
FROM event_log
FROM {event_log}
WHERE (usr IN (' . join(',', array_fill(0, count($userids), '?')) . ')
OR realusr IN (' . join(',', array_fill(0, count($userids), '?')) . '))
AND event = \'loginas\'
......
......@@ -256,7 +256,7 @@ function get_admin_user_search_results($search, $offset, $limit) {
artefacttype = \'email\'
AND LOWER(title) IN (
SELECT LOWER(title)
FROM artefact
FROM {artefact}
WHERE artefacttype = \'email\'
GROUP BY LOWER(title)
HAVING count(id) > 1
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment