13
Sorry,
I can't spend time to correct oryxgen for XOOPS 2.2 or 2.3. I keep development on 2.0 for the moment.
I'm waiting for the early stable version of 2.2.4 or 2.3 to adapt oryxgen to this new versions.
The 2.2.3 is not really stable. you'll get better results by using the latest 2.0.x release.
For example in the 2.2.3 in the XoopsMySQLDatabase class the quoteString function is
function quoteString($str)
{
if (is_string($str)) {
$str = "'".str_replace('\"', '"', addslashes($str))."'";
}
return $str;
}
In XOOPS 2.0.13, the code is
function quoteString($str)
{
$str = "'".str_replace('\"', '"', addslashes($str))."'";
return $str;
}
I use this function to format field in the SQL requests. In 2.2.3 if my string is "" the quoteString return blank (becaus e "" isn't a string) witch provide a sql error...
Should i correct this in the oryxgen module or not ?
For me the quoteString will become
function quoteString($str)
{
if (is_string($str)) {
$str = "'".str_replace('\"', '"', addslashes($str))."'";
} else if (!$str) {
$str ="''";
}
return $str;
}
But i don't know if it is a bug or something of desired.