checking for array to prevent array error with php5
This commit is contained in:
parent
251cb7db6d
commit
451792e34d
|
@ -49,7 +49,7 @@ $mem->resetlast();
|
||||||
if($admin->enabled) {
|
if($admin->enabled) {
|
||||||
$expiring = $admin->renew_get_expiring_accounts();
|
$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 "<h2>" . _("Expired or about to expire accounts") . "</h2>\n";
|
||||||
echo "<table cellspacing=\"2\" cellpadding=\"4\">\n";
|
echo "<table cellspacing=\"2\" cellpadding=\"4\">\n";
|
||||||
echo "<tr><th>"._("uid")."</th><th>"._("Last name, surname")."</th><th>"._("Expiry")."</th></tr>\n";
|
echo "<tr><th>"._("uid")."</th><th>"._("Last name, surname")."</th><th>"._("Expiry")."</th></tr>\n";
|
||||||
|
|
Loading…
Reference in New Issue