bugfix function call incorrect
This commit is contained in:
parent
d1caf4a275
commit
ae46be8141
|
@ -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; }
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in New Issue