thomascube
2008-06-20 6ea6c9b96e33f0c6616ff270cc5b81efe216a209
program/include/bugs.inc
@@ -66,7 +66,7 @@
 */
function log_bug($arg_arr)
{
  global $CONFIG, $INSTALL_PATH;
  global $CONFIG;
  $program = $arg_arr['type']=='xpath' ? 'XPath' : strtoupper($arg_arr['type']);
  // write error to local log file
@@ -81,7 +81,7 @@
      $arg_arr['line']);
                 
    if (empty($CONFIG['log_dir']))
      $CONFIG['log_dir'] = $INSTALL_PATH.'logs';
      $CONFIG['log_dir'] = INSTALL_PATH.'logs';
      
    // try to open specific log file for writing
    if ($fp = @fopen($CONFIG['log_dir'].'/errors', 'a'))