[TYPO3-project-formidable] Error in LISTER Datahandler ?
Fernando Romay
fromay at igalia.com
Mon Jul 31 10:35:30 CEST 2006
Hi again, i'm using the Lister Datahandler, and when i try to use the
"<search><query>" tag for configuration i've got this error
"Warning: mysql_num_rows(): supplied argument is not a valid MySQL
result resource in /var/www/fromay/hurs_src/t3lib/class.t3lib_db.php on
line 789"
Well looking at the code, it seems that there's a typo in the param
passed to the _navconf function on line 97 of class
tx_ameosformidabledhlister:
if($this->oForm->_navConf("/search/sql/query/userobj",$this->aElement) !== false)
{
print "/query/userobj";
$sql = $this->oForm->_callUserObj($this->oForm->_navConf("/search/sql/query/userobj", $this->aElement));
}
i think it should be:
if($this->oForm->_navConf("/search/sql/query/userobj", $this->aElement) !== false)
{
print "/query/userobj";
$sql = $this->oForm->_callUserObj($this->oForm->_navConf("/search/sql/query", $this->aElement));
}
so, i've changed it and now it works for me.
NANDO!
More information about the TYPO3-project-formidable
mailing list