summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rw-r--r--includes/file.inc2
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;