Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
forena
Commits
21998848
Commit
21998848
authored
May 13, 2013
by
metzlerd
Browse files
Corrected bug in detecting non-quote support.
parent
355948c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/FrxPDO.inc
View file @
21998848
...
@@ -116,7 +116,7 @@ class FrxPDO extends FrxDataSource {
...
@@ -116,7 +116,7 @@ class FrxPDO extends FrxDataSource {
*/
*/
public
function
quote
(
$value
)
{
public
function
quote
(
$value
)
{
$new_value
=
$this
->
db
->
quote
(
$value
);
$new_value
=
$this
->
db
->
quote
(
$value
);
if
((
$value
=
==
''
||
$value
=
==
NULL
)
&&
!
$new_value
)
{
if
((
$value
!
==
''
||
$value
!
==
NULL
)
&&
!
$new_value
)
{
$value
=
"'"
.
str_replace
(
"'"
,
"''"
,
$value
)
.
"'"
;
$value
=
"'"
.
str_replace
(
"'"
,
"''"
,
$value
)
.
"'"
;
}
}
else
{
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment