Index: /WAeUP_SRP/trunk/WAeUPTool.py
===================================================================
--- /WAeUP_SRP/trunk/WAeUPTool.py	(revision 3805)
+++ /WAeUP_SRP/trunk/WAeUPTool.py	(revision 3806)
@@ -1266,8 +1266,9 @@
     security.declareProtected(ModifyPortalContent,'findUnusedImageFolders') ###(
     def findUnusedImageFolders(self):
-        """check if an unused image folder exists in the filesystem"""
-
+        """check if an unused image folders exists in the filesystem"""
+
+        abc = os.listdir(images_base)
         ifolders = []
-        for i in a:
+        for i in abc:
             picture_path = os.path.join(images_base,i)
             ifolders.extend(os.listdir(picture_path))
