Merge branch 'master' of /home/wd/git/u-boot/custodians
[oweals/u-boot.git] / tools / bddb / dodelete.php
index 839ad8cf1078e59ad335443ee06b1137e12ca0ed..4839e36e60e3acad6cf1758dffb9ca7c15616390 100644 (file)
@@ -1,7 +1,7 @@
 <?php // php pages made with phpMyBuilder <http://kyber.dk/phpMyBuilder> ?>
 <?php
        // (C) Copyright 2001
-       // Murray Jensen <Murray.Jensen@cmst.csiro.au>
+       // Murray Jensen <Murray.Jensen@csiro.au>
        // CSIRO Manufacturing Science and Technology, Preston Lab
 
        // dodelete page (hymod_bddb / boards)
@@ -10,8 +10,9 @@
 
        pg_head("$bddb_label - Delete Board Results");
 
-       if (!($serno=intval($serno)))
+       if (!isset($_REQUEST['serno']))
                die("the board serial number was not specified");
+       $serno=intval($_REQUEST['serno']);
 
        mysql_query("delete from boards where serno=$serno");