Commit fbe033bb authored by Ewald's avatar Ewald
Browse files

corrections to decrease database traffic

parent 53fdfaff
......@@ -229,7 +229,7 @@ function F_getAuthorizedUsers($user_id) {
$str = ''; // string to return
$user_id = intval($user_id);
$sql1 = 'SELECT usrgrp_group_id FROM '.K_TABLE_USERGROUP.' LEFT JOIN '. K_TABLE_GROUPS.' ON usrgrp_group_id = group_id
WHERE usrgrp_user_id = '.$user_id.' AND group_type = \'B\' AND group_id > 1 ';
WHERE usrgrp_user_id = '.$user_id.' AND group_type = \'B\' AND group_id != 1';
$sql = 'SELECT tb.usrgrp_user_id
FROM '.K_TABLE_USERGROUP.' AS ta, '.K_TABLE_USERGROUP.' AS tb
WHERE ta.usrgrp_group_id=tb.usrgrp_group_id
......
Markdown is supported
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