From f735936a7d4dd143bd2e9057e018835e635370dd Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 15 Dec 2008 14:37:15 -0800 Subject: [PATCH] don't bother listing upload dirs without files --- contrib/bulk_add/main.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/bulk_add/main.php b/contrib/bulk_add/main.php index d1bc925d..54d01945 100644 --- a/contrib/bulk_add/main.php +++ b/contrib/bulk_add/main.php @@ -82,7 +82,9 @@ class BulkAdd implements Extension { } closedir($dir); - $this->theme->add_status("Adding $subdir", $list); + if(strlen($list) > 0) { + $this->theme->add_status("Adding $subdir", $list); + } } } add_event_listener(new BulkAdd());