|
From: Ulf E. <ulf...@us...> - 2005-07-20 18:01:44
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28833 Modified Files: bugform.html index.html report.html wrap.html Log Message: Silencing some "undefined variable/index" warnings. Index: bugform.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/bugform.html,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- bugform.html 5 Dec 2004 15:45:07 -0000 1.11 +++ bugform.html 20 Jul 2005 18:01:33 -0000 1.12 @@ -1,3 +1,16 @@ +<?php + if (!isset($reporter)) $reporter = ''; + if (!isset($version)) $version = ''; + if (!isset($title)) $title = ''; + if (!isset($description)) $description = ''; + if (!isset($url)) $url = ''; + if (!isset($severity)) $severity = ''; + if (!isset($priority)) $priority = ''; + if (!isset($component)) $component = ''; + if (!isset($database)) $database = ''; + if (!isset($site)) $site = ''; + if (!isset($os)) $os = ''; +?> <form action="bug.php" method="post" enctype="multipart/form-data"> <table border="0"> <?php if (!empty($error)) { ?> Index: index.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/index.html,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- index.html 25 Oct 2004 12:07:04 -0000 1.13 +++ index.html 20 Jul 2005 18:01:34 -0000 1.14 @@ -52,7 +52,7 @@ <?php foreach ($stats as $statid => $info) { ?> <tr> <td><a href="query.php?op=doquery&status[]=<?php echo $statid ?>"><?php echo $info['name'] ?></a></td> - <td align="center"><?php echo $info['count'] ? $info['count'] : 0 ?></td> + <td align="center"><?php echo isset($info['count']) && $info['count'] ? $info['count'] : 0 ?></td> </tr> <?php } ?> </table> Index: report.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/report.html,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- report.html 25 Oct 2004 12:07:04 -0000 1.9 +++ report.html 20 Jul 2005 18:01:34 -0000 1.10 @@ -2,7 +2,7 @@ <?php echo translate("Show bug statistics for the selected project"); ?>: <select name="projectid" onChange="document.location.href='<?php echo $_SERVER['SCRIPT_NAME']; ?>?projectid='+this.options[this.selectedIndex].value"> <option value="0"><?php echo translate("All projects"); ?></option> - <?php build_select('project', $_GET['projectid']); ?> + <?php build_select('project', isset($_GET['projectid']) ? $_GET['projectid'] : ''); ?> </select> <input type="submit" value="<?php echo translate("Go"); ?>"> </form> Index: wrap.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/wrap.html,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- wrap.html 19 Jul 2005 20:24:05 -0000 1.30 +++ wrap.html 20 Jul 2005 18:01:34 -0000 1.31 @@ -32,14 +32,14 @@ <?php if (basename($_SERVER['SCRIPT_NAME']) != 'newaccount.php') { ?> <div class="personalarea"> -<form method="post" action="<?php echo $_SERVER['SCRIPT_NAME'].($_SERVER['REQUEST_STRING'] ? '?'.$_SERVER['REQUEST_STRING'] : '') ?>"> +<form method="post" action="<?php echo $_SERVER['SCRIPT_NAME'].(isset($_SERVER['REQUEST_STRING']) ? '?'.$_SERVER['REQUEST_STRING'] : '') ?>"> <?php if (empty($_SESSION['uid'])) { ?> <?php if (EMAIL_IS_LOGIN) $loginlabel = translate("Email"); else $loginlabel = translate("Login"); ?> <?php echo !empty($loginerror) ? $loginerror : ''; ?> - <?php echo $loginlabel ?>: <input type="text" name="username" class="bottomnavinput" value="<?php echo $_COOKIE['phpbt_user'] ?>"> + <?php echo $loginlabel ?>: <input type="text" name="username" class="bottomnavinput" value="<?php echo (isset($_COOKIE['phpbt_user']) ? $_COOKIE['phpbt_user'] : '') ?>"> <?php echo translate("Password") ?>: <input type="password" name="password" class="bottomnavinput"> <input type="hidden" name="dologin" value="1"> <input type="submit" value="<?php echo translate("Login"); ?>" class="bottomnavinput"> |