Skip to content

Commit

Permalink
only unique messages when not debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
oyejorge committed Sep 25, 2015
1 parent ec62be5 commit 90782af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gpconfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
* Set to true to display php errors in the browser window.
* Defaults to false
*/
//define('gpdebug',true);
define('gpdebug',true);


/**
Expand Down
4 changes: 3 additions & 1 deletion include/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,9 @@ function GetMessages( $wrap = true ){
}
if( !empty($wbMessageBuffer) ){

$wbMessageBuffer = array_unique($wbMessageBuffer);
if( gpdebug === false ){
$wbMessageBuffer = array_unique($wbMessageBuffer);
}

$result .= '<div class="messages"><div>';
$result .= '<a style="" href="#" class="req_script close_message" data-cmd="close_message"></a>';
Expand Down

0 comments on commit 90782af

Please sign in to comment.