Skip to content

Commit

Permalink
Bug: 13391 Fix PHP Error due to non-array being passed.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Jul 23, 2014
1 parent ef3773a commit 81953bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Core/lib/Horde/Core/ActiveSync/Driver.php
Expand Up @@ -2488,7 +2488,7 @@ public function createDeviceCallback(Horde_ActiveSync_Device $device)
if ($perms->exists('horde:activesync:max_devices')) {
$max_devices = $this->_getPolicyValue('max_devices', $perms->getPermissions('horde:activesync:max_devices', $registry->getAuth()));
$state = $injector->getInstance('Horde_ActiveSyncState');
$devices = $state->listDevices($registry->getAuth(), false);
$devices = $state->listDevices($registry->getAuth());
if (count($devices) >= $max_devices) {
$this->_logger->info(sprintf(
'Maximum number of devices of %d reached for %s.',
Expand Down

0 comments on commit 81953bb

Please sign in to comment.