Skip to content

Commit

Permalink
Don't assume mail API is available.
Browse files Browse the repository at this point in the history
Bug: 12738
  • Loading branch information
mrubinsk committed Oct 11, 2013
1 parent 31e7db2 commit 19efe8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions framework/Core/lib/Horde/Core/Factory/ActiveSyncBackend.php
Expand Up @@ -12,6 +12,12 @@ public function create(Horde_Injector $injector)
// Backend driver and dependencies
$params = array('registry' => $registry);
$adapter_params = array('factory' => new Horde_Core_ActiveSync_Imap_Factory());

// Force emailsync to off if we don't have a mail API.
if (!$registry->hasInterface('mail')) {
$conf['activesync']['emailsync'] = false;
}

$driver_params = array(
'connector' => new Horde_Core_ActiveSync_Connector($params),
'imap' => !empty($conf['activesync']['emailsync'])
Expand Down

0 comments on commit 19efe8d

Please sign in to comment.