summaryrefslogtreecommitdiff
path: root/adodb-active-recordx.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'adodb-active-recordx.inc.php')
-rw-r--r--adodb-active-recordx.inc.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/adodb-active-recordx.inc.php b/adodb-active-recordx.inc.php
index 079352f1..503d34dd 100644
--- a/adodb-active-recordx.inc.php
+++ b/adodb-active-recordx.inc.php
@@ -780,9 +780,7 @@ class ADODB_Active_Record {
if ('' === (string)$val) {
return "''";
}
- if (strlen($val) > 0 &&
- (strncmp($val, "'", 1) != 0 || substr($val, strlen($val) - 1, 1) != "'")
- ) {
+ if (substr($val, 0, 1) != "'" || substr($val,-1) != "'") {
return $db->qstr($val);
}
default: