Commit 19fd4a07 authored by Franco Fichtner's avatar Franco Fichtner

src: usual isset() woes

parent 2dc29128
......@@ -5,7 +5,7 @@ require_once("config.inc");
require_once("util.inc");
require_once("pfsense-utils.inc");
if (!is_array($config['aliases']['alias'])) {
if (!isset($config['aliases']['alias'])) {
// No aliases
exit;
}
......
......@@ -1054,7 +1054,7 @@ function alias_info_popup($alias_id){
function rule_popup($src,$srcport,$dst,$dstport){
global $config,$g;
$aliases_array = array();
if ($config['aliases']['alias'] <> "" and is_array($config['aliases']['alias'])) {
if (isset($config['aliases']['alias'])) {
$descriptions = array ();
foreach ($config['aliases']['alias'] as $alias_id=>$alias_name){
//$loading_image="<a><img src=\'/themes/{$g['theme']}/images/misc/loader.gif\' alt=\'loader\' /> " .gettext("loading...")."</a>";
......
......@@ -139,6 +139,7 @@ include("head.inc");
</div>
</td>
</tr>
<?php if (file_exists($file_pkg_status)) { ?>
<tr>
</tr>
<tr>
......@@ -199,6 +200,7 @@ include("head.inc");
</div>
</td>
</tr>
<?php } // endif ?>
</table>
</div>
......
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