View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0012373 | mantisbt | other | public | 2010-09-19 15:11 | 2014-12-08 02:08 |
Reporter | gthomas | Assigned To | dhx | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.0dev | ||||
Target Version | 1.3.0-beta.1 | ||||
Summary | 0012373: log_event doesn't log simple string logs | ||||
Description | $s_msg doesn't get value if $p_msg is not an array. | ||||
Additional Information | patch attached. | ||||
Tags | patch | ||||
Attached Files | log_msg-d6c80ca.patch (389 bytes)
diff --git a/core/logging_api.php b/core/logging_api.php old mode 100644 new mode 100755 index d6c80ca..e8bffe6 --- a/core/logging_api.php +++ b/core/logging_api.php @@ -67,6 +67,7 @@ function log_event( $p_level, $p_msg, $p_backtrace = null ) { $s_msg = var_export( $p_msg, true ); } else { $t_event = array( $p_msg, 0 ); + $s_msg = $p_msg; } if( $p_backtrace === null ) { | ||||
MantisBT: master bc9b2dea 2010-09-21 21:06 Committer: dhx Details Diff |
Fix 0012373: log_event doesn't log simple strings $s_msg doesn't get a value if $p_msg is an array. When $s_msg is used later on in the function it will be undefined, throwing an error. This is solved by giving $s_msg a value when $p_msg is an array. Signed-off-by: David Hicks <hickseydr@optusnet.com.au> |
Affected Issues 0012373 |
|
mod - core/logging_api.php | Diff File |