From bcbadd367073889a3dd3f03f1ca6d908fccd357e Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 5 Apr 2008 01:39:13 +0000 Subject: [PATCH] BUGFIX removed notices git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@52162 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/Database.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/model/Database.php b/core/model/Database.php index 9020f7669..a49964aac 100755 --- a/core/model/Database.php +++ b/core/model/Database.php @@ -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");