com web/bugs: remove unused parameter and local variable: include/functions.php www/bug.php
| From: | Christoph Michael Becker | Date: | Tue, 24 Jul 2018 14:36:40 +0000 |
| Subject: | com web/bugs: remove unused parameter and local variable: include/functions.php www/bug.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-27181@lists.php.net to get a copy of this message | ||
Commit: 4d4f996b5ccb0a376c3ac68af96f92620ed75e4f
Author: Yanni <peter.yanni@mac-rktba-00002.fritz.box> Fri, 13 Oct 2017 00:06:25
+0200
Committer: Christoph M. Becker <cmbecker69@gmx.de> Tue, 24 Jul 2018 16:36:40 +0200
Parents: 4d15a9ad3ce027421440f8f0bb011ca1f59ee430
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=4d4f996b5ccb0a376c3ac68af96f92620ed75e4f
Log:
remove unused parameter and local variable
Changed paths:
M include/functions.php
M www/bug.php
Diff:
diff --git a/include/functions.php b/include/functions.php
index 03ab96b..0ba7b75 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -687,11 +687,10 @@ function show_reason_types($current = '', $expanded = 0)
* Prints PHP version number <option>'s for use in a <select> list
*
* @param string $current the bug's current version number
- * @param string $default a version number that should be the default
*
* @return void
*/
-function show_version_options($current, $default = '')
+function show_version_options($current)
{
global $ROOT_DIR, $versions;
diff --git a/www/bug.php b/www/bug.php
index 6807fd2..458b9fb 100644
--- a/www/bug.php
+++ b/www/bug.php
@@ -1257,7 +1257,7 @@ function delete_comment($bug_id, $com_id)
{
global $dbh;
- $res = $dbh->prepare("DELETE FROM bugdb_comments WHERE bug='{$bug_id}' AND
id='{$com_id}'")->execute();
+ $dbh->prepare("DELETE FROM bugdb_comments WHERE bug='{$bug_id}' AND
id='{$com_id}'")->execute();
}
function control($num, $desc)