Oops... do not loop on the root !
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sat, 5 Aug 2006 16:45:29 +0000 (16:45 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:07 +0000 (00:35 +0100)
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@131 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/spool.inc.php

index c938a24..7b20f15 100644 (file)
@@ -592,6 +592,9 @@ class BananaSpool
         // Look in current thread
         $cur = $id;
         while (true) {
+            if (is_null($cur)) {
+                break;
+            }
             $parent = $this->overview[$cur]->parent;
             $ok     = false;
             if (is_null($parent)) {