Check for $GLOBALS['conf'] AND $GLOBALS['injector']
authorChuck Hagenbuch <chuck@horde.org>
Sat, 15 Jan 2011 04:29:49 +0000 (23:29 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Sat, 15 Jan 2011 04:29:49 +0000 (23:29 -0500)
framework/Core/lib/Horde.php

index cec702b..d331226 100644 (file)
@@ -88,7 +88,7 @@ class Horde
     {
         /* Chicken/egg: wait until we have basic framework setup before we
          * start logging. */
-        if (isset($GLOBALS['conf'])) {
+        if (isset($GLOBALS['conf']) && isset($GLOBALS['injector'])) {
             $options['trace'] = 2;
             $GLOBALS['injector']->getInstance('Horde_Log_Logger')->log($event, $priority, $options);
         }