Fixing typos

This commit is contained in:
Pavel Shevaev 2023-04-18 13:42:35 +03:00
parent d9243e3108
commit 8febc2c08d
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ function bhl_proj()
function _bhl_make_abs_path($proj_file, $path) function _bhl_make_abs_path($proj_file, $path)
{ {
if($path[0] == '.') if($path && $path[0] == '.')
return dirname($proj_file) . '/' . $path; return dirname($proj_file) . '/' . $path;
else else
return $path; return $path;
@ -215,7 +215,7 @@ function bhl_run($debug = true, $force = false, $exit_on_err = true)
if($ret_var != 0) 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) if(!$exit_on_err)
return false; return false;
} }