Cast to string.
This is an array, not an object.
Fix syntax.
Fix value access.

$from is an a list, ->bare doesn't exist at all, and searchEmail() expects a
single string.
Fix displayed URLs for shared collections (Bug #12380).
phpdoc
Don't include external tasks in WebDAV tasklists.
Simplify
Add some hack to not display personal address books in -system- folder.