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

src: usual isset() woes

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