From e24028e9d1f85a585005da60945f745afdb72ad8 Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter Date: Sat, 8 Apr 2006 18:39:26 +0000 Subject: [PATCH] #53197, function file_check_location return wrong exit code, patch by Patrick Deburca --- includes/file.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/file.inc b/includes/file.inc index 1c79f9e8296..35eb8fb2c36 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -269,7 +269,7 @@ function file_check_upload($source = 'upload') { * @param $directory A string where the file should be located. * @return 0 for invalid path or the real path of the source. */ -function file_check_location($source, $directory = 0) { +function file_check_location($source, $directory = '') { $check = realpath($source); if ($check) { $source = $check;