The buttonbar at the top of each page is now a fixed 'div' element
[gnucomo.git] / src / web / parameter_compare.php
index db8d4c8..0755d80 100644 (file)
@@ -9,7 +9,7 @@
 ***********************
 **      FILE NAME      : parameter_compare.php
 **      SYSTEM NAME    : Gnucomo - Gnu Computer Monitoring
-**      VERSION NUMBER : $Revision: 1.6 $
+**      VERSION NUMBER : $Revision: 1.7 $
 **
 **  DESCRIPTION      : 
 **
 
 /*****************************
    $Log: parameter_compare.php,v $
-   Revision 1.6  2003-12-03 08:03:28  arjen
+   Revision 1.7  2007-11-21 14:38:06  arjen
+   The buttonbar at the top of each page is now a fixed 'div' element
+   instead of a framed page.
+   Contributed by Edwin Nadorp.
+
+   Revision 1.6  2003/12/03 08:03:28  arjen
    Optionally show or hide removed parameters from the parameter
    comparison page.
 
@@ -46,7 +51,7 @@
 
 ******************************/
 
-// RCSID = "$Id: parameter_compare.php,v 1.6 2003-12-03 08:03:28 arjen Exp $";
+// RCSID = "$Id: parameter_compare.php,v 1.7 2007-11-21 14:38:06 arjen Exp $";
 
 ini_set('include_path', '.:./classes:../phpclasses');
 
@@ -156,7 +161,7 @@ class param_diff extends page
       echo "<tr><th>Name</th><th>Properties</th><th>Name</th><th>Propterties</th></tr>\n";
 
       $hide_removed = true;
-      $hide_removed = $_POST['show_removed'] != 'on';
+      $hide_removed = empty($_POST['show_removed']) || $_POST['show_removed'] != 'on';
 
       $row = 0;
       while ($row < pg_numrows($res))
@@ -214,7 +219,6 @@ class param_diff extends page
                display_parameter($nextpar->name, $prnext, $Style, $this->is_removed($nextpar->paramid));
                display_parameter($par->name, $pr, $Style, $this->is_removed($par->paramid));
             }
          }
          else
          {