Rename variable to fix bug.

git-svn-id: http://svn.code.sf.net/p/openmediavault/code/trunk@1142 3c3d7b80-5828-415e-9f61-280b98178fff
Improve code.

git-svn-id: http://svn.code.sf.net/p/openmediavault/code/trunk@1143 3c3d7b80-5828-415e-9f61-280b98178fff