Adodb error notice
Posted: Tue Sep 19, 2006 4:09 pm
I am getting this notice... and adodb is not loading an active record even though I looked at the query it is performing and the quere is structurally FINE...
Relevent adodb code: Anybody know what could be causing this error? (php4)
EDIT: This may seem unrelated... but does parent::__construct() work in php4 if you replace __construct with the parent's class name?
My code:error wrote:Notice: Only variable references should be returned by reference in /path/to/library/adodb/adodb.inc.php on line 1425
Code: Select all
function findByUsername($username){
$this->load("`username` = '" . $this->qstr($username) . "'");
return $this->isLoaded();
}Code: Select all
function &GetRow($sql,$inputarr=false)
{
global $ADODB_COUNTRECS;
$crecs = $ADODB_COUNTRECS;
$ADODB_COUNTRECS = false;
$rs =& $this->Execute($sql,$inputarr);
$ADODB_COUNTRECS = $crecs;
if ($rs) {
if (!$rs->EOF) $arr = $rs->fields;
else $arr = array();
$rs->Close();
return $arr; // LINE 1425
}
$false = false;
return $false;
}EDIT: This may seem unrelated... but does parent::__construct() work in php4 if you replace __construct with the parent's class name?