foreach ( $callbacks as $callback ) {
try {
$this->clearFlag( DBO_TRX ); // make each query its own transaction
- $callback();
+ call_user_func( $callback );
$this->setFlag( $autoTrx ? DBO_TRX : 0 ); // restore automatic begin()
- } catch ( Exception $e ) {
- }
+ } catch ( Exception $e ) {}
}
} while ( count( $this->mTrxIdleCallbacks ) );
$this->mTrxPreCommitCallbacks = array(); // recursion guard
foreach ( $callbacks as $callback ) {
try {
- $callback();
+ call_user_func( $callback );
} catch ( Exception $e ) {}
}
} while ( count( $this->mTrxPreCommitCallbacks ) );