Incoorect use of ADDODB SetFetchMode in pnuserapi.php
Brought to you by:
jornlind
The ADDODB function SetFetchMode returns the previous fetch mode. There is no need to access the global variable $ADDODB_FETCH_MODE.
The following patch will correct this.
*** Attic\pnuserapi.php Thu Feb 8 22:30:42 2007
--- ./pnuserapi.php Sat Mar 31 17:10:32 2007
***************
*** 808,816 ****
$titleColumn .= "_fullTitle";
}
! global $ADODB_FETCH_MODE;
! $oldMode = $ADODB_FETCH_MODE;
! $dbconn->SetFetchMode(ADODB_FETCH_ASSOC);
$result = $dbconn->execute($sql);
$dbconn->SetFetchMode($oldMode);
--- 808,814 ----
$titleColumn .= "_fullTitle";
}
! $oldMode = $dbconn->SetFetchMode(ADODB_FETCH_ASSOC);
$result = $dbconn->execute($sql);
$dbconn->SetFetchMode($oldMode);
Regards
Reiner Maiwald