X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Ftree.php;h=f37c8422a7ee06dd3472177d9cf0b1b0bc9136f9;hb=6e189ce2d5f55a924286a193bdaa1978d82d5ea3;hp=9871d45a6e30d907446b29eea764a55f88371033;hpb=8a549df2a3129570bce1acc11d35e926268f70b8;p=squirrelmail.git diff --git a/functions/tree.php b/functions/tree.php index 9871d45a..f37c8422 100644 --- a/functions/tree.php +++ b/functions/tree.php @@ -2,12 +2,11 @@ /* $Id$ */ - $tree_php = true; + if (defined('tree_php')) + return; + define('tree_php', true); - if (!isset($imap_php)) - include('../functions/imap.php'); - if (!isset($config_php)) - include('../config/config.php'); + require_once('../functions/imap.php'); // Recursive function to find the correct parent for a new node function findParentForChild($value, $treeIndexToStart, $tree) {