diff options
| author | Mark Newnham <mark@newnhams.com> | 2023-11-01 06:59:28 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-01 13:59:28 +0100 |
| commit | 1501ccd07868d626a51802d14ed41ed05a3532ad (patch) | |
| tree | 0755ff95ff7511150bcb82a521a2173d2e892c99 /drivers | |
| parent | 9ff17cf31ac8835d2bf802ff6a36abb12fe682ac (diff) | |
| download | adodb-1501ccd07868d626a51802d14ed41ed05a3532ad.tar.gz adodb-1501ccd07868d626a51802d14ed41ed05a3532ad.tar.bz2 adodb-1501ccd07868d626a51802d14ed41ed05a3532ad.zip | |
Prevent str_replace NULL test error in PHP 8.1 (#1005)
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/adodb-oci8.inc.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/adodb-oci8.inc.php b/drivers/adodb-oci8.inc.php index 2506d68f..542b6945 100644 --- a/drivers/adodb-oci8.inc.php +++ b/drivers/adodb-oci8.inc.php @@ -1579,6 +1579,9 @@ SELECT /*+ RULE */ distinct b.column_name if ($this->noNullStrings && strlen($s) == 0) { $s = ' '; } + else if (strlen($s) == 0) { + return "''"; + } if ($this->replaceQuote[0] == '\\'){ $s = str_replace('\\','\\\\',$s); } |
