mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add missing else for non SQLServer db's.
This commit is contained in:
parent
f23226b937
commit
9a7e69df7f
1 changed files with 3 additions and 0 deletions
|
@ -72,7 +72,10 @@ class Sanitize {
|
|||
$string = $db->value($string, 'string');
|
||||
if ($string[0] === 'N') {
|
||||
$string = substr($string, 2);
|
||||
} else {
|
||||
$string = substr($string, 1);
|
||||
}
|
||||
|
||||
$string = substr($string, 0, -1);
|
||||
return $string;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue