bugfix function call incorrect

This commit is contained in:
Steven Mondji-Lerider 2012-09-19 13:11:10 +00:00
parent d1caf4a275
commit ae46be8141
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ if (!$_SERVER[HTTPS]) {
// Here we used to have a form to enter the squirrelmail's webmail.
// Following the "rule of less astonishment, we try to put it here again, even though the webmail is now a plugin.
$res=$hooks->invoke("hook_admin_webmail");
if (($wr=get_variable("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) {
if (($wr=variable_get("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) {
$url=$res[$wr];
} else {
foreach($res as $r) if ($r!==false) { $url=$r; break; }

View File

@ -27,7 +27,7 @@ require_once("../class/config_nochk.php");
$res=$hooks->invoke("hook_admin_webmail");
if (($wr=get_variable("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) {
if (($wr=variable_get("webmail_redirect")) && isset($res[$wr]) && $res[$wr]) {
$url=$res[$wr];
} else {
foreach($res as $r) if ($r!==false) { $url=$r; break; }