summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGábor Hojtsy2011-11-23 09:37:17 (GMT)
committer Gábor Hojtsy2011-11-23 09:37:17 (GMT)
commitcdc5cc1396552e2b6315aee04aca86703441ed1a (patch)
tree22872ce1a34144cd8e16c1cfafeb77468a007d23
parent9a24d71960790e866fc74d305f012e05ab70894d (diff)
Issue #1169034 by mfb: fix notice in file_create_filename() for cases when the ext variable did not exist previously
-rw-r--r--includes/file.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/file.inc b/includes/file.inc
index 2972699..b14c5b9 100644
--- a/includes/file.inc
+++ b/includes/file.inc
@@ -459,6 +459,7 @@ function file_create_filename($basename, $directory) {
}
else {
$name = $basename;
+ $ext = '';
}
$counter = 0;