Bugfixes

I just installed the plugin at an 1and1 hosting account and got some errors and warnings by php. I fixed them.