zimbra.php: Fix ZLog error if searchfolderid is not defined
Brought to you by:
gnosbush,
liverpoolfcfan
In GetMailboxSearchResults(), the ZLog:Write for SearchFolderId is at the wrong place, which results in an error "Undefined variable: searchfolderid (8)", if searchfolderid is not defined.
This affects Release 66 and earlier.
The (trivial) fix is attached: Move the ZLog:Write inside the if clause (it is already that way in the similar code block in GetDocumentLibrarySearchResults()).
Do you know how you generated a search with no folder specified?
Managed to reproduce this with an iOS 10 device. Fixed it. Thanks. The fix will be in Release 67.
Trivial issue. Closing ahead of fix being released