Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from chezmo/master

evaluate _bl_messages_types before storing messages
  • Loading branch information...
commit 74ebda4694f1b70d4f57e2272871f6dcb10cde35 2 parents 68c1f74 + ffcc654
@jordifreek authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 phpbuglost.php
View
5 phpbuglost.php
@@ -554,7 +554,10 @@ function bl_format_time($time) {
* @return void
*/
function bl_msg($msg, $file, $line, $type = 'user') {
- $format_msg = $msg;
+ // don't fill memory if we don't need it later
+ if (strpos(_bl_messages_types,$type)==false) return false;
+
+ $format_msg = $msg;
if (_bl_create_times) {
bl_time('Log missage '.substr($msg, 0, 30)).'...';
Please sign in to comment.
Something went wrong with that request. Please try again.