Avoid double loading of horde.local.php if already loaded in test.php
authorJan Schneider <jan@horde.org>
Wed, 12 May 2010 11:25:35 +0000 (13:25 +0200)
committerJan Schneider <jan@horde.org>
Wed, 12 May 2010 11:25:35 +0000 (13:25 +0200)
horde/lib/core.php

index 84a1e4d..6c4cc89 100644 (file)
@@ -31,7 +31,7 @@ if (!defined('HORDE_BASE')) {
 
 ini_set('include_path', $dirname . PATH_SEPARATOR . ini_get('include_path'));
 if (file_exists(HORDE_BASE . '/config/horde.local.php')) {
-    include HORDE_BASE . '/config/horde.local.php';
+    include_once HORDE_BASE . '/config/horde.local.php';
 }
 
 /* Set up autoload paths for core Horde libs (located in lib/). This can't