From c03f590f552b906a3ce685a2e09a158f901a741a Mon Sep 17 00:00:00 2001 From: kkalev Date: Fri, 3 Dec 2004 16:13:42 +0000 Subject: [PATCH] Fix Bug #167 --- Changelog | 1 + bin/monthly_tot_stats | 2 +- bin/tot_stats | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 9945682..782a73a 100644 --- a/Changelog +++ b/Changelog @@ -36,6 +36,7 @@ Ver 1.75: * In the show groups page, note that we only show groups with members * In lib/sql/group_info.php3 only unset variables if we need to. In lib/sql/defaults.php3 don't run for groups only for users +* Fix Bug #167 Ver 1.72: * Move the xlat function to a separate file in lib/xlat.php3 * Add a lib/sql/nas_list.php3 to also get the nas list from sql (naslist.conf still works) diff --git a/bin/monthly_tot_stats b/bin/monthly_tot_stats index 6d1ced6..015ea50 100755 --- a/bin/monthly_tot_stats +++ b/bin/monthly_tot_stats @@ -29,7 +29,7 @@ close CONF; die "sql_command directive is not set in admin.conf\n" if ($sqlcmd eq ''); die "Could not find sql binary. Please make sure that the \$sqlcmd variable points to the right location\n" if (! -x $sqlcmd); -$sql_password = ($sql_password == '') ? '' : "-p$sql_password"; +$sql_password = ($sql_password eq '') ? '' : "-p$sql_password"; $sql_password =~ s/(\W)/\\$1/g; ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime; diff --git a/bin/tot_stats b/bin/tot_stats index 82c53de..904d89e 100755 --- a/bin/tot_stats +++ b/bin/tot_stats @@ -28,7 +28,7 @@ close CONF; die "sql_command directive is not set in admin.conf\n" if ($sqlcmd eq ''); die "Could not find sql binary. Please make sure that the \$sqlcmd variable points to the right location\n" if (! -x $sqlcmd); -$sql_password = ($sql_password == '') ? '' : "-p$sql_password"; +$sql_password = ($sql_password eq '') ? '' : "-p$sql_password"; $sql_password =~ s/(\W)/\\$1/g; ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime; -- 2.39.5