Changed AND to &&

File based on commercial 1.5 version for Joomla 3.2.