Fixed bug #4172

Fixed Bug #4172 for Phpmyadmin programming contest