diff --git a/bhl.inc.php b/bhl.inc.php index 82c8893..a28e61c 100644 --- a/bhl.inc.php +++ b/bhl.inc.php @@ -160,7 +160,7 @@ function bhl_proj() function _bhl_make_abs_path($proj_file, $path) { - if($path[0] == '.') + if($path && $path[0] == '.') return dirname($proj_file) . '/' . $path; else return $path; @@ -215,7 +215,7 @@ function bhl_run($debug = true, $force = false, $exit_on_err = true) if($ret_var != 0) { - bhl_handle_error_result($ret_out, $err_file, $exit_on_err); + bhl_handle_error_result($ret_out, bhl_proj()->error_file, $exit_on_err); if(!$exit_on_err) return false; }