summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-06-12 01:29:08 +0200
committerINOPIAE <inopiae@cacert.org>2013-06-12 01:29:08 +0200
commit97782c6ff8394e431497ac11bca26c8bea9afe05 (patch)
tree68bd47a80d0e99f48ed0a8974cc122b6ec29cfff
parentbf1c6858e4740bee6d3ea07058ee168f41fb209e (diff)
downloadcacert-devel-97782c6ff8394e431497ac11bca26c8bea9afe05.tar.gz
cacert-devel-97782c6ff8394e431497ac11bca26c8bea9afe05.tar.xz
cacert-devel-97782c6ff8394e431497ac11bca26c8bea9afe05.zip
bug 1003: changed $adminlist[$flagname[0]] to $adminlist[$flag]
-rwxr-xr-xscripts/cron/permissionreview.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/cron/permissionreview.php b/scripts/cron/permissionreview.php
index 8c2b344..718c64f 100755
--- a/scripts/cron/permissionreview.php
+++ b/scripts/cron/permissionreview.php
@@ -136,16 +136,16 @@ foreach ($flags as $flag => $flag_properties) {
continue;
}
- $adminlist[$flagname[0]] = array();
+ $adminlist[$flag] = array();
while ($row = mysql_fetch_assoc($res)) {
- $adminlist[$flagname[0]][] = $row;
+ $adminlist[$flag][] = $row;
}
// Send mail to admins of this group if 'own' is set
if ($flag_properties['own']) {
- foreach ($adminlist[$flagname[0]] as $admin) {
+ foreach ($adminlist[$flag] as $admin) {
$message = <<<EOF
Hello $admin[fname],
@@ -202,7 +202,7 @@ Best Regards,
CAcert Support
EOF;
-foreach ($adminlist['$flagname[0]'] as $support_engineer) {
+foreach ($adminlist['$flag'] as $support_engineer) {
sendmail(
$support_engineer['email'],
"Permissions Review",