Daniel Dimitrov wrote:function existsAkoTable()
{
$database = JFactory::getDBO();
$database->setQuery('');
}
function existsAkoTable()
{
JFactory::getDBO()->setQuery();
}
From what I understand, the first is traditional PHP code and valid syntax.
The second I would think is a new "shorthand" way that was introduced in PHP v5 major. Technically speaking in OOP terms its horrible code - where's the variable?
Alas it is much simpler and obviously smaller - that really counts for the most.
Regardless I think upgrading to PHPv5 is best, if not for anything else than for security and performance concerns (I don't believe PHPv4 has ZEND Optimizier capability, or even decent GZIP support?)