Fixed killing another users session not working correctly

This commit is contained in:
jengo 2001-09-28 21:41:16 +00:00
parent 3a65ab5a7f
commit b66076c146

View File

@ -32,12 +32,6 @@
function list_sessions($start,$order,$sort)
{
// if (! $sort || ! $order)
// {
// $order = 'session_dla';
// $sort = 'asc';
// }
$values = $this->so->list_sessions($start,$sort,$order);
while (list(,$value) = each($values))
@ -69,7 +63,7 @@
{
if ($GLOBALS['ksession'] && $GLOBALS['sessionid'] != $GLOBALS['ksession'] && ! $GLOBALS['phpgw']->acl->check('current_sessions_access',8,'admin'))
{
$GLOBALS['phpgw']->session->destroy($GLOBALS['ksession']);
$GLOBALS['phpgw']->session->destroy($GLOBALS['ksession'],0);
}
$this->ui = createobject('admin.uicurrentsessions');
$this->ui->list_sessions();