Fixed imap search bug.
[squirrelmail.git] / functions / tree.php
index 01e318daf4566c547eccc2be3d9d0717bae86d00..f37c8422a7ee06dd3472177d9cf0b1b0bc9136f9 100644 (file)
@@ -6,8 +6,7 @@
        return;
    define('tree_php', true);
 
-   include('../functions/imap.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) {
          echo $tree[$index]['value'] . '<br>';
       }
    }
-?>
+?>
\ No newline at end of file