summaryrefslogtreecommitdiff
path: root/lib/file/editinfo.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/file/editinfo.php')
-rw-r--r--lib/file/editinfo.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/file/editinfo.php b/lib/file/editinfo.php
index eea9f35..500a7fc 100644
--- a/lib/file/editinfo.php
+++ b/lib/file/editinfo.php
@@ -30,7 +30,11 @@ if (isset($_POST['name']) && isset($_POST['comment']) && isset($_POST['folder'])
} else {
sql("UPDATE files SET name = '" . escs($name) . "', comment='" . escs($comment). "',
comment_html = '" . escs($comment_html) . "', folder = $folder WHERE id = $id");
- header("Location: file");
+ if ($folder == 0) {
+ header("Location: file");
+ } else {
+ header("Location: folder-file-$folder");
+ }
die();
}
}