Commit 20281136 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-651 Only contact DeviceManager if DeviceID is set. Released under the

Affero GNU General Public License (AGPL) version 3.
parent a386d254
......@@ -166,7 +166,7 @@ class BackendZarafa implements IBackend, ISearchProvider {
// send Z-Push version and user agent to ZCP - ZP-589
if (Utils::CheckMapiExtVersion('7.2.0')) {
$zpush_version = 'Z-Push_' . @constant('ZPUSH_VERSION');
$user_agent = ZPush::GetDeviceManager()->GetUserAgent();
$user_agent = (Request::GetDeviceID()) ? ZPush::GetDeviceManager()->GetUserAgent() : "unknown";
$this->session = @mapi_logon_zarafa($user, $pass, MAPI_SERVER, null, null, 0, $zpush_version, $user_agent);
}
else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment