diff options
| author | Damien Regad <dregad@mantisbt.org> | 2025-11-22 12:19:55 +0100 |
|---|---|---|
| committer | Damien Regad <dregad@mantisbt.org> | 2025-11-22 12:19:55 +0100 |
| commit | 30504fcefbc0c2442ba63a8ced905e722b9eae42 (patch) | |
| tree | cd7314b2a9de0dd1a48ae7c68084fe06c44eeb60 /adodb-active-recordx.inc.php | |
| parent | ca87e1ad23bc5cfd1b09b1d1bc7de586cc681338 (diff) | |
| download | adodb-30504fcefbc0c2442ba63a8ced905e722b9eae42.tar.gz adodb-30504fcefbc0c2442ba63a8ced905e722b9eae42.tar.bz2 adodb-30504fcefbc0c2442ba63a8ced905e722b9eae42.zip | |
Fix static analysis warnings
Diffstat (limited to 'adodb-active-recordx.inc.php')
| -rw-r--r-- | adodb-active-recordx.inc.php | 6 |
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; } } |
