diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-30 09:15:01 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2008-10-30 09:15:01 +0000 |
| commit | 94320a2f818ae9108262cb35bf64bee147360aab (patch) | |
| tree | 2131a42d35166a583c97912238da4403fd688697 /roundcubemail/program/include/bugs.inc | |
| parent | 42738e9fa44635be5b6dc11d186b75f6d21a4631 (diff) | |
- fix log_bug() for empty 'file' parameter
git-svn-id: https://svn.roundcube.net/trunk@2025 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/bugs.inc')
| -rw-r--r-- | roundcubemail/program/include/bugs.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/roundcubemail/program/include/bugs.inc b/roundcubemail/program/include/bugs.inc index 56b88c631..869022bcf 100644 --- a/roundcubemail/program/include/bugs.inc +++ b/roundcubemail/program/include/bugs.inc @@ -73,12 +73,11 @@ function log_bug($arg_arr) if ($CONFIG['debug_level'] & 1) { $post_query = ($_SERVER['REQUEST_METHOD'] == 'POST' ? '?_task='.urlencode($_POST['_task']).'&_action='.urlencode($_POST['_action']) : ''); - $log_entry = sprintf("[%s] %s Error: %s in %s on line %d (%s %s)\n", + $log_entry = sprintf("[%s] %s Error: %s%s (%s %s)\n", date("d-M-Y H:i:s O", mktime()), $program, $arg_arr['message'], - $arg_arr['file'], - $arg_arr['line'], + $arg_arr['file'] ? sprintf(' in %s on line %d', $arg_arr['file'], $arg_arr['line']) : '', $_SERVER['REQUEST_METHOD'], $_SERVER['REQUEST_URI'] . $post_query); |
