Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
02 August 2013
Due date:
% Done:

100%

Estimated time:

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.

Actions #1

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 #2

Updated by beat about 10 years ago

  • Priority changed from Urgent to Normal
Actions #3

Updated by beat about 10 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF