This commit is contained in:
2021-04-12 16:16:36 +08:00
parent e43e301d07
commit 7b5c38dc4b
+2
View File
@@ -218,8 +218,10 @@ use Database\ActiveRecord;
$prefixed = $this->db->tablePrefix; $prefixed = $this->db->tablePrefix;
if (!empty($prefixed)) { if (!empty($prefixed)) {
$field = str_replace($prefixed, '', $field); $field = str_replace($prefixed, '', $field);
if (str_starts_with($field, $prefixed)) {
$field = '{{%' . $field . '}}'; $field = '{{%' . $field . '}}';
} }
}
return ' return '
/** /**