Fix warnings.
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Wed, 31 Oct 2007 23:21:02 +0000 (23:21 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:56 +0000 (00:35 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@297 9869982d-c50d-0410-be91-f2a2ec7c7c7b

banana/tree.inc.php

index 9031c29..667925f 100644 (file)
@@ -92,7 +92,7 @@ class BananaTree
      */
     public function &show()
     {
-        if (!is_null($this->displaid)) {
+        if (!is_null($this->displaid) || is_null($this->data)) {
             return $this->displaid;
         }
         static $t_e, $u_h, $u_ht, $u_vt, $u_l, $u_f, $r_h, $r_ht, $r_vt, $r_l, $r_f;