[svn][7084] JTable::hits doesn't check for field, doesn't update object (patch i - Joomla! Forum - community, help and support


in jtable::hits method, no checking performing determine table has hits field.  if not, update query cause page crash.

also, when hit method done, not update objects hits property (i.e. database update, not jtable object.

i suggest adding following code @ beginning:

code: select all

if (!in_array( 'hits', $this->getpublicproperties() )) {

   return;

}

and following line @ end:

code: select all

$this->hits++;


this included in patch file attached message.

thanks,
ian

agreed - added





Comments