Bug #4142
closed
J3.1.5: New query debugging causes errors with CBs query usage due to missing cursor clearing
Added by krileon over 11 years ago.
Updated about 10 years ago.
Start date:
02 August 2013
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.
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 ).....
- Priority changed from Urgent to Normal
- Status changed from Resolved to Closed
Also available in: Atom
PDF