Fix sql syntax error when listing users of a session

1.10.x
eric 10 years ago
parent 56aa4696af
commit d3078242af
  1. 2
      main/inc/lib/sessionmanager.lib.php

@ -3206,7 +3206,7 @@ class SessionManager
$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 )";
}

Loading…
Cancel
Save