浏览代码

Database [Class]: Update for PHP 8.1

fusionate 2 年之前
父节点
当前提交
65acd0bf93
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      resources/classes/database.php

+ 1 - 1
resources/classes/database.php

@@ -2513,7 +2513,7 @@
 																	}
 																	}
 																}
 																}
 															}
 															}
-															if (!$child_key_value) {
+															if (!isset($child_key_value) || $child_key_value == '') {
 																$child_key_value = uuid();
 																$child_key_value = uuid();
 															}
 															}
 															//build the insert
 															//build the insert