Skip to content

Commit c7163ac

Browse files
committed
Merge branch 'gsyncenabled' into 'master'
fix: undefined variable in isGSyncEnabled See merge request grommunio/grommunio-sync!100
2 parents a9cb4a4 + dbd3a3c commit c7163ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grommunio/grommunio.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3052,7 +3052,7 @@ private function isGSyncEnabled() {
30523052
$storeProps = mapi_getprops($this->storeCache[$this->mainUser], [PR_MAILBOX_OWNER_ENTRYID, PR_EC_ENABLED_FEATURES_L]);
30533053
$mobileDisabled = !($storeProps[PR_EC_ENABLED_FEATURES_L] & UP_EAS);
30543054
if (!$mobileDisabled) {
3055-
$mailuser = mapi_ab_openentry($addressbook, $userEntryid[PR_MAILBOX_OWNER_ENTRYID]);
3055+
$mailuser = mapi_ab_openentry($addressbook, $storeProps[PR_MAILBOX_OWNER_ENTRYID]);
30563056
$enabledFeatures = mapi_getprops($mailuser, [PR_EC_DISABLED_FEATURES]);
30573057
if (isset($enabledFeatures[PR_EC_DISABLED_FEATURES]) && is_array($enabledFeatures[PR_EC_DISABLED_FEATURES])) {
30583058
$mobileDisabled = in_array(self::MOBILE_ENABLED, $enabledFeatures[PR_EC_DISABLED_FEATURES]);

0 commit comments

Comments
 (0)