From 27071db039b4594c726add17b0b25ac968b547a4 Mon Sep 17 00:00:00 2001 From: kkalev Date: Mon, 9 Sep 2002 14:28:52 +0000 Subject: [PATCH] Fix a stupid bug in accounting.php3. We should not use the show_attrs array. --- Changelog | 1 + htdocs/accounting.php3 | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Changelog b/Changelog index a035ff1..11b05e1 100644 --- a/Changelog +++ b/Changelog @@ -62,6 +62,7 @@ Ver 1.55: * Add a user find page. User can be searched based on the full name, department or RADIUS attribute. The radius attribute should be included in the _user_ profile, not in a group/regular/default profile. * Add support for the user ldap regular profile attribute in user_edit.attrs +* Fix a stupid bug in accounting.php3. We should not use the show_attrs array. Ver 1.54: * Add attributes for the sql group tables in admin.conf. Now SQL group support should really work! Ver 1.53: diff --git a/htdocs/accounting.php3 b/htdocs/accounting.php3 index 1563714..27473d6 100644 --- a/htdocs/accounting.php3 +++ b/htdocs/accounting.php3 @@ -22,7 +22,7 @@ EOM; exit(); } -$operators=array( '<', '>', '=', '>=', '<=' ); +$operators=array( '=','<', '>', '<=', '>=' ); $link = @da_sql_pconnect ($config) or die('cannot connect to sql databse'); $fields = @da_sql_list_fields($config[sql_accounting_table],$link,$config); @@ -110,7 +110,7 @@ if(!$queryflag) { Show the following attributes:
- EOM; foreach($items as $key => $val) echo << @@ -232,18 +232,18 @@ echo << EOM; -foreach($show_attrs as $val){ +foreach($accounting_show_attrs as $val){ $desc = $sql_attrs[$val][desc]; echo "$desc\n"; } echo "\n"; - $search = @da_sql_query($link,$config,"$query"); + $search = @da_sql_query($link,$config,$query); if ($search){ while( $row = @da_sql_fetch_array($search,$config) ){ $num++; echo "\n"; - foreach($show_attrs as $val){ + foreach($accounting_show_attrs as $val){ $info = $row[$val]; if ($info == '') $info = '-'; -- 2.39.5