From 57eeca07c9df4c84d3339568e788a4fcb97385d1 Mon Sep 17 00:00:00 2001 From: Les De Ridder Date: Thu, 16 Feb 2017 16:12:29 +0100 Subject: [PATCH] Don't append a dot to file names without an extension --- includes/core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/core.php b/includes/core.php index 87a2d78..15cd1b6 100644 --- a/includes/core.php +++ b/includes/core.php @@ -64,7 +64,7 @@ function gen_name($arg, $in){ } switch($arg){ case 'random': - return $name.'.'.$in; + return $name.($in === NULL ? '' : '.').$in; break; case 'custom_original': return $name.'_'.$in;