Skip to content

Commit 3201d80

Browse files
authored
Fix empty() bug on DBPrefix
1 parent afc7f1a commit 3201d80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Database/Forge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ public function dropTable(string $tableName, bool $ifExists = false, bool $casca
605605
}
606606

607607
// If the prefix is already starting the table name, remove it...
608-
if (! empty($this->db->DBPrefix) && strpos($tableName, $this->db->DBPrefix) === 0)
608+
if ($this->db->DBPrefix && strpos($tableName, $this->db->DBPrefix) === 0)
609609
{
610610
$tableName = substr($tableName, strlen($this->db->DBPrefix));
611611
}

0 commit comments

Comments
 (0)