Actions
Bug #4142
closedJ3.1.5: New query debugging causes errors with CBs query usage due to missing cursor clearing
Description
Joomla 3.1.5 has new query debugging, which needs the cursor to be cleared properly. However CBs m_free_result does not clear it. It should call Joomlas freeResult function if it's callable.
Updated by krileon over 11 years ago
Quickfix as follows.
IN: /administrator/components/com_comprofiler/library/cb/cb.database.php
ON: Lines 1232 - 1236
FROM: if ( is_object( $cur ) && get_class( $cur )....
TO: if ( is_callable( array( $this->_db, 'freeResult' ) ) ) {
$this->_db->freeResult( $cur );
} elseif ( is_object( $cur ) && get_class( $cur ).....
Actions