mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX removed notices
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52162 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
3a492151f8
commit
bcbadd3670
@ -246,7 +246,8 @@ abstract class Database extends Object {
|
||||
function dontRequireTable($table) {
|
||||
if(!isset($this->tableList)) $this->tableList = $this->tableList();
|
||||
if(isset($this->tableList[strtolower($table)])) {
|
||||
while($this->tableList[strtolower("_obsolete_{$table}$suffix")]) {
|
||||
$suffix = '';
|
||||
while(isset($this->tableList[strtolower("_obsolete_{$table}$suffix")])) {
|
||||
$suffix = $suffix ? ($suffix+1) : 2;
|
||||
}
|
||||
$this->renameTable($table, "_obsolete_{$table}$suffix");
|
||||
|
Loading…
x
Reference in New Issue
Block a user