tricorder: add tricordereeprom command
[oweals/u-boot.git] / tools / bddb / dodellog.php
index 5942ec9a520b006d73a486c6503c279501bd7e4f..9dd78c11b6d0f313ccc5b8e04a2d5bfdaad2fedd 100644 (file)
 
        pg_head("$bddb_label - Delete Log Entry Results");
 
-       if (!($serno=intval($serno)))
+       if (!isset($_REQUEST['serno']))
                die("the board serial number was not specified");
+       $serno=intval($_REQUEST['serno']);
 
-       if (!isset($logno) || $logno == 0)
+       if (!isset($_REQUEST['logno']) || $_REQUEST['logno'] == 0)
                die("the log entry number not specified!");
+       $logno=$_REQUEST['logno'];
 
        mysql_query("delete from log where serno=$serno and logno=$logno");