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.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/adodb-active-recordx.inc.php b/adodb-active-recordx.inc.php
index 9daa05ec..079352f1 100644
--- a/adodb-active-recordx.inc.php
+++ b/adodb-active-recordx.inc.php
@@ -762,15 +762,17 @@ class ADODB_Active_Record {
}
// quote data in where clause
- function doQuote(&$db, $val, $t)
+ function doQuote($db, $val, $t)
{
switch ($t) {
case 'D':
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'T':
if (empty($val)) {
return 'null';
}
case 'C':
+ /** @noinspection PhpMissingBreakStatementInspection */
case 'X':
if (is_null($val)) {
return 'null';
@@ -782,11 +784,9 @@ class ADODB_Active_Record {
(strncmp($val, "'", 1) != 0 || substr($val, strlen($val) - 1, 1) != "'")
) {
return $db->qstr($val);
- break;
}
default:
return $val;
- break;
}
}