Fix each error if no sessions listed (php4 mode sessions); add switch to add in

php4 mode session listing later
This commit is contained in:
Miles Lott 2002-01-04 00:39:00 +00:00
parent ab1bae0505
commit e17a39e584
3 changed files with 26 additions and 18 deletions

View File

@ -34,7 +34,7 @@
{
$values = $this->so->list_sessions($start,$sort,$order);
while (list(,$value) = each($values))
while (list(,$value) = @each($values))
{
if (ereg('@',$value['session_lid']))
{

View File

@ -31,8 +31,14 @@
function list_sessions($start,$order,$sort)
{
switch ($GLOBALS['phpgw_info']['server']['sessions_type'])
{
case 'php4':
/* TODO */
break;
case 'db':
default:
$ordermethod = 'order by session_dla asc';
$this->db->limit_query("select * from phpgw_sessions where session_flags != 'A' order by $sort $order",$start,__LINE__,__FILE__);
while ($this->db->next_record())
@ -47,5 +53,7 @@
);
}
return $values;
break;
}
}
}

View File

@ -110,7 +110,7 @@
$values = $this->bo->list_sessions($info['start'],$info['order'],$info['sort']);
while (list(,$value) = each($values))
while (list(,$value) = @each($values))
{
$this->nextmatchs->template_alternate_row_color(&$this->template);
@ -154,7 +154,7 @@
$this->template->parse('rows','row',True);
}
$this->template->pparse('out','list');
$this->template->pfp('out','list');
}
function kill()