Skip to content

Commit fed993c

Browse files
karlgraymichalsn
andauthored
Update system/Database/SQLite3/Table.php
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent 678c4d9 commit fed993c

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

system/Database/SQLite3/Table.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,6 @@ protected function createTable()
336336
$foreignTableName = $foreignKey->foreign_table_name;
337337
$prefix = $this->db->DBPrefix;
338338

339-
// trim() takes a set of characters, not a prefix, so it would also
340-
// strip those characters from the end of the name, and from the
341-
// start beyond the prefix itself.
342339
if ($prefix !== '' && str_starts_with($foreignTableName, $prefix)) {
343340
$foreignTableName = substr($foreignTableName, strlen($prefix));
344341
}

0 commit comments

Comments
 (0)