thomascube
2005-11-18 fbf77b4493f1b77c99751d8a86365c712ae3fb1b
program/include/bugs.inc
@@ -6,7 +6,7 @@
 |                                                                       |
 | This file is part of the BQube Webmail client                         |
 | Copyright (C) 2005, BQube Dev - Switzerland                           |
 | All rights reserved.                                                  |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 | PURPOSE:                                                              |
 |   Provide error handling and logging functions                        |
@@ -63,8 +63,12 @@
                 $arg_arr['message'],
                 $arg_arr['file'],
                 $arg_arr['line']);
    if ($fp = fopen($INSTALL_PATH.'logs/errors', 'a'))
    if (empty($CONFIG['log_dir']))
      $CONFIG['log_dir'] = $INSTALL_PATH.'logs';
    if ($fp = fopen($CONFIG['log_dir'].'/errors', 'a'))
      {
      fwrite($fp, $log_entry);
      fclose($fp);