Removing of several warnings to make the dav addon work again

The dav addon hadn't worked in the past because of PHP warnings. The addon is now working again.

Additionally the function to convert shared content for several networks has now an option especially for G+ and Facebook.