This commit is contained in:
2021-04-13 17:46:28 +08:00
parent 4b6c1c63ae
commit 1673b9aae5
+2 -1
View File
@@ -217,8 +217,9 @@ use Database\ActiveRecord;
$prefixed = $this->db->tablePrefix;
if (!empty($prefixed)) {
$field = str_replace($prefixed, '', $field);
if (str_starts_with($field, $prefixed)) {
$field = str_replace($prefixed, '', $field);
$field = '{{%' . $field . '}}';
}
}