checking for array to prevent array error with php5

This commit is contained in:
Benjamin Sonntag 2007-10-02 16:30:42 +00:00
parent 251cb7db6d
commit 451792e34d
1 changed files with 1 additions and 1 deletions

View File

@ -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 "<h2>" . _("Expired or about to expire accounts") . "</h2>\n";
echo "<table cellspacing=\"2\" cellpadding=\"4\">\n";
echo "<tr><th>"._("uid")."</th><th>"._("Last name, surname")."</th><th>"._("Expiry")."</th></tr>\n";