From 451792e34d06cbabc6a655282e5689118ea0a967 Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Tue, 2 Oct 2007 16:30:42 +0000 Subject: [PATCH] checking for array to prevent array error with php5 --- bureau/admin/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bureau/admin/main.php b/bureau/admin/main.php index e2c0cbd8..e0066ad1 100644 --- a/bureau/admin/main.php +++ b/bureau/admin/main.php @@ -49,7 +49,7 @@ $mem->resetlast(); if($admin->enabled) { $expiring = $admin->renew_get_expiring_accounts(); - if(count($expiring) > 0) { + if(is_array($expiring) && count($expiring) > 0) { echo "

" . _("Expired or about to expire accounts") . "

\n"; echo "\n"; echo "\n";
"._("uid").""._("Last name, surname").""._("Expiry")."