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