Commit b0926593 authored by Franco Fichtner's avatar Franco Fichtner

interfaces: fix a crash report

parent be8e3e8a
......@@ -30,8 +30,9 @@
require_once("guiconfig.inc");
require_once("interfaces.inc");
if (!is_array($config['gres']['gre']))
if (!isset($config['gres']['gre']) || !is_array($config['gres']['gre'])) {
$config['gres']['gre'] = array();
}
$a_gres = &$config['gres']['gre'] ;
......
......@@ -37,8 +37,9 @@ require_once("services.inc");
$referer = (isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '/interfaces_gre.php');
if (!is_array($config['gres']['gre']))
if (!isset($config['gres']['gre']) || !is_array($config['gres']['gre'])) {
$config['gres']['gre'] = array();
}
$a_gres = &$config['gres']['gre'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment