Update directory.php

Fixed MySQL error if user is not in the Super User group while deleting directories.
Merge pull request #857 from bembelimen/patch-1

Fixed MySQL error if user is not in the Super User group while deleting directories.