diff options
author | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-04-08 18:39:26 +0000 |
---|---|---|
committer | Gerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org> | 2006-04-08 18:39:26 +0000 |
commit | e24028e9d1f85a585005da60945f745afdb72ad8 (patch) | |
tree | 614fa6398f2deb1528b561c92af95d997617242f /includes | |
parent | 8ce5fe4d1fa301bcaf33cbce29cd740d28df0658 (diff) | |
download | brdo-e24028e9d1f85a585005da60945f745afdb72ad8.tar.gz brdo-e24028e9d1f85a585005da60945f745afdb72ad8.tar.bz2 |
#53197, function file_check_location return wrong exit code, patch by Patrick Deburca
Diffstat (limited to 'includes')
-rw-r--r-- | includes/file.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc index 1c79f9e82..35eb8fb2c 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; |