add Joomla 3 compatibility
fix PHP notices