Skip to content
Permalink
Browse files

Remove unused global variable declarations

Issue #25043
  • Loading branch information...
atrol committed Nov 7, 2018
1 parent 3b24e53 commit 34319bfc7bc9408ddab697f5141120af9ccf1765
Showing with 1 addition and 2 deletions.
  1. +0 −1 core/bug_api.php
  2. +1 −1 core/bugnote_api.php
@@ -1162,7 +1162,6 @@ function bug_check_workflow( $p_bug_status, $p_wanted_status ) {
* @access public
*/
function bug_copy( $p_bug_id, $p_target_project_id = null, $p_copy_custom_fields = false, $p_copy_relationships = false, $p_copy_history = false, $p_copy_attachments = false, $p_copy_bugnotes = false, $p_copy_monitoring_users = false ) {
global $g_db;
$t_bug_id = (int)$p_bug_id;
$t_target_project_id = (int)$p_target_project_id;
@@ -594,7 +594,7 @@ function bugnote_row_to_object( array $p_row ) {
* @access public
*/
function bugnote_get_all_bugnotes( $p_bug_id ) {
global $g_cache_bugnotes_by_bug_id, $g_cache_bugnotes_by_id;
global $g_cache_bugnotes_by_bug_id;
# the cache should be aware of the sorting order
if( !isset( $g_cache_bugnotes_by_bug_id[(int)$p_bug_id] ) ) {

0 comments on commit 34319bf

Please sign in to comment.
You can’t perform that action at this time.