Fix check if AS is disabled.
authorJan Schneider <jan@horde.org>
Fri, 9 Apr 2010 17:04:20 +0000 (19:04 +0200)
committerJan Schneider <jan@horde.org>
Fri, 9 Apr 2010 17:04:20 +0000 (19:04 +0200)
horde/rpc.php

index 54dcde4..8c81514 100644 (file)
@@ -30,7 +30,8 @@ Horde_Registry::appInit('horde', array('authentication' => 'none', 'nocompress'
 $request = new Horde_Controller_Request_Http();
 
 /* TODO: This is for debugging, replace with logger from injector before merge */
-if ($conf['activesync']['logging']['type'] == 'custom') {
+if ($conf['activesync']['enabled'] &&
+    $conf['activesync']['logging']['type'] == 'custom') {
     $params['logger'] = new Horde_Log_Logger(new Horde_Log_Handler_Stream(fopen($conf['activesync']['logging']['path'], 'a')));
 } else {
     $params['logger'] = $GLOBALS['injector']->getInstance('Horde_Log_Logger');