Skip to content

Commit

Permalink
Fixes #39 - avoid Notice when $GLOBALS['id'] is not just a post ID
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Apr 22, 2016
1 parent 467913e commit cec19be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/bwtrace.php
Expand Up @@ -286,7 +286,9 @@ function bw_get_post_id() {
if ( isset( $GLOBALS['id'] ) ) {
$id = $GLOBALS['id'];
if ( $id <> $post_id ) {
$post_id .= "<>" . $id;
if ( is_scalar( $id ) ) {
$post_id .= "<>" . $id;
}
}
}
return( $post_id ) ;
Expand Down

0 comments on commit cec19be

Please sign in to comment.