This commit is contained in:
Adrian Greeve
2021-03-18 11:11:46 +08:00
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -10426,7 +10426,7 @@ class lang_string {
// changes are not carried across.
// To do this we always ensure $a or its properties/values are strings
// and that any properties/values that arn't convertable are forgotten.
if (!empty($a)) {
if ($a !== null) {
if (is_scalar($a)) {
$this->a = $a;
} else if ($a instanceof lang_string) {