Skip to content

Commit

Permalink
Throw exception if AS is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jun 20, 2014
1 parent 8f83d19 commit edb3056
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions framework/Core/lib/Horde/Core/Factory/ActiveSyncState.php
Expand Up @@ -9,6 +9,10 @@ public function create(Horde_Injector $injector)
{
global $conf;

if (empty($conf['activesync']['enabled'])) {
throw new Horde_Exception('ActiveSync is disabled.');
}

$driver = $conf['activesync']['storage'];
switch (Horde_String::lower($driver)) {
case 'nosql':
Expand Down

0 comments on commit edb3056

Please sign in to comment.