From ae46be8141e953700f218c9af8232983d3c76848 Mon Sep 17 00:00:00 2001 From: Steven Mondji-Lerider Date: Wed, 19 Sep 2012 13:11:10 +0000 Subject: [PATCH] bugfix function call incorrect --- bureau/admin/index.php | 2 +- bureau/admin/webmail-redirect.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bureau/admin/index.php b/bureau/admin/index.php index f5095b9d..6876d9fd 100644 --- a/bureau/admin/index.php +++ b/bureau/admin/index.php @@ -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; } diff --git a/bureau/admin/webmail-redirect.php b/bureau/admin/webmail-redirect.php index 12f93dec..1b042471 100644 --- a/bureau/admin/webmail-redirect.php +++ b/bureau/admin/webmail-redirect.php @@ -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; }