File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -175,16 +175,17 @@ public function Handle($commandCode) {
175
175
if ($ searchtotal > 0 ) {
176
176
foreach ($ rows as $ u ) {
177
177
// fetch the SyncObject for this result
178
- $ message = self ::$ backend ->Fetch (false , $ u ['longid ' ], $ cpo );
179
- $ mfolderid = self ::$ deviceManager ->GetFolderIdForBackendId (bin2hex ($ message ->ParentSourceKey ));
178
+ list ($ longfolderid , $ uid ) = Utils::SplitMessageId ($ u ['longid ' ]);
179
+ $ folderid = self ::$ deviceManager ->GetFolderIdForBackendId ($ u ['folderid ' ]);
180
+ $ message = self ::$ backend ->Fetch ($ folderid , $ uid , $ cpo );
180
181
181
182
self ::$ encoder ->startTag (SYNC_FIND_RESULT );
182
183
self ::$ encoder ->startTag (SYNC_FOLDERTYPE );
183
184
self ::$ encoder ->content ($ u ['class ' ]);
184
185
self ::$ encoder ->endTag ();
185
186
186
187
self ::$ encoder ->startTag (SYNC_SERVERENTRYID );
187
- self ::$ encoder ->content ($ mfolderid . ": " . $ u ['serverid ' ]);
188
+ self ::$ encoder ->content ($ folderid . ": " . $ u ['serverid ' ]);
188
189
self ::$ encoder ->endTag ();
189
190
self ::$ encoder ->startTag (SYNC_FOLDERID );
190
191
self ::$ encoder ->content ($ cpo ->GetRawFindFolderId ());
You can’t perform that action at this time.
0 commit comments