Merge pull request #81 from s-matt/master

Solves Bug PIMCORE-2112 & removes warning in debug-mode

git-svn-id: http://www.pimcore.org/svn/pimcore/private/core/trunk@3968 1f8fe7d8-47f0-464c-8d0a-336f4953ab05
build auto version (2990) ...

git-svn-id: http://www.pimcore.org/svn/pimcore/private/core/trunk@3969 1f8fe7d8-47f0-464c-8d0a-336f4953ab05