php function "find_in_file"

This commit is contained in:
myvesta 2023-03-26 19:04:45 +02:00 committed by GitHub
commit da136faf08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View file

@ -12,7 +12,7 @@ define('MYVESTA_ERROR_GENERAL', 5);
function myvesta_throw_error($code, $message) {
global $myvesta_exit_on_error;
echo "ERROR: ".$message."\n";
if ($message!=='') echo "ERROR: ".$message."\n";
if ($myvesta_exit_on_error) myvesta_exit($code);
return $code;
}