Commit 21998848 authored by metzlerd's avatar metzlerd
Browse files

Corrected bug in detecting non-quote support.

parent 355948c0
......@@ -116,7 +116,7 @@ class FrxPDO extends FrxDataSource {
*/
public function quote($value) {
$new_value = $this->db->quote($value);
if (($value==='' || $value===NULL) && !$new_value) {
if (($value!=='' || $value!==NULL) && !$new_value) {
$value = "'" . str_replace("'", "''", $value) . "'";
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment