Commit 842d464f authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1166 Check PR_DISPLAY_TYPE_EX as flag and also ignore

DT_ORGANIZATION.

Released under the Affero GNU General Public License (AGPL) version 3.
parent fe2bcf98
......@@ -202,12 +202,17 @@ class Kopano extends ContactWorker {
continue;
}
// ignore ROOMS
elseif (isset($entry[PR_DISPLAY_TYPE_EX]) && $entry[PR_DISPLAY_TYPE_EX] == DT_ROOM) {
elseif (isset($entry[PR_DISPLAY_TYPE_EX]) && $entry[PR_DISPLAY_TYPE_EX] & DT_ROOM) {
$ignored++;
continue;
}
// ignore EQUIPMENT
elseif (isset($entry[PR_DISPLAY_TYPE_EX]) && $entry[PR_DISPLAY_TYPE_EX] == DT_EQUIPMENT) {
elseif (isset($entry[PR_DISPLAY_TYPE_EX]) && $entry[PR_DISPLAY_TYPE_EX] & DT_EQUIPMENT) {
$ignored++;
continue;
}
// ignore ORGANIZATION
elseif (isset($entry[PR_DISPLAY_TYPE_EX]) && $entry[PR_DISPLAY_TYPE_EX] & DT_ORGANIZATION) {
$ignored++;
continue;
}
......
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