issue #1158 - and other stuff that I didn't wanted to merge (I hate GIT)

This pull request was intended to contain only issue https://github.com/friendica/friendica/issues/1158

For reasons I don't really understand, it also contains some small programming that I wanted to release at some later time. But it doesn't matter much, since this is only a small change.