Skip to content

Commit

Permalink
Fix sql syntax error when listing users of a session
Browse files Browse the repository at this point in the history
  • Loading branch information
emarguin committed Feb 17, 2015
1 parent 56aa469 commit d307824
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main/inc/lib/sessionmanager.lib.php
Expand Up @@ -3206,7 +3206,7 @@ public static function get_users_by_session($id, $status = null)
$urlId = api_get_current_access_url_id();
if (isset($status) && $status != '') {
$status = intval($status);
$sql .= " WHERE relation_type = $status (access_url_id = $urlId OR access_url_id is null )";
$sql .= " WHERE relation_type = $status AND (access_url_id = $urlId OR access_url_id is null )";
} else {
$sql .= " WHERE (access_url_id = $urlId OR access_url_id is null )";
}
Expand Down

0 comments on commit d307824

Please sign in to comment.