!autoslaps
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Wed, 9 Aug 2006 20:21:54 +0000 (20:21 +0000)
committerx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Wed, 9 Aug 2006 20:21:54 +0000 (20:21 +0000)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@133 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/spool.inc.php

index c4c2aba..220924f 100644 (file)
@@ -571,7 +571,10 @@ class BananaSpool
             return $id;
         }
         foreach ($this->overview[$id]->children as $child) {
-            return $this->_nextUnread($child);
+            $unread = $this->_nextUnread($child);
+            if (!is_null($unread)) {
+                return $unread;
+            }    
         }
         return null;
     }