This commit has been accessed 567 times via Git panel.
commit 4ffa965447386331d537098b8dffe7789dafe862
tree 9c4292db0bd7a5ab2f911ff851caa77135a76e44
parent dce705c6a4dd45fea913d35468eb1587f631d02c
author Engels Antonio <engels@majcms.org> 1277314190 +0800
committer Engels Antonio <engels@majcms.org> 1277314190 +0800
maj-0.14-20071023-bb.zip
diff --git a/index.php b/index.php
index 9ad4a63..b4f632d 100644
--- a/index.php
+++ b/index.php
@@ -1713,6 +1713,9 @@ if (is_dir($dir)) {
}
}
elseif (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "filedrop")) {
+ if (count(glob("data/items/$entry_main/filedrop/*")) === 0) {
+ rmdir("data/items/$entry_main/filedrop");
+ }
if (file_exists("data/items/$entry_main/filedrop")) {
$items[] = $entry_main;
}
tree 9c4292db0bd7a5ab2f911ff851caa77135a76e44
parent dce705c6a4dd45fea913d35468eb1587f631d02c
author Engels Antonio <engels@majcms.org> 1277314190 +0800
committer Engels Antonio <engels@majcms.org> 1277314190 +0800
maj-0.14-20071023-bb.zip
diff --git a/index.php b/index.php
index 9ad4a63..b4f632d 100644
--- a/index.php
+++ b/index.php
@@ -1713,6 +1713,9 @@ if (is_dir($dir)) {
}
}
elseif (isset($_REQUEST['find']) and !empty($_REQUEST['find']) and ($_REQUEST['find'] == "filedrop")) {
+ if (count(glob("data/items/$entry_main/filedrop/*")) === 0) {
+ rmdir("data/items/$entry_main/filedrop");
+ }
if (file_exists("data/items/$entry_main/filedrop")) {
$items[] = $entry_main;
}