MINOR Fixed PHP level notices

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@76223 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-05-06 04:42:58 +00:00
parent 85cdbd8996
commit 8e62d36c5f

View File

@ -712,7 +712,7 @@ class Versioned extends DataObjectDecorator {
if(!$className) {
Debug::show($query->sql());
Debug::show($record);
user_error("Versioned::get_version: Couldn't get $class.$id, version $version", E_USER_ERROR);
user_error("Versioned::get_version: Couldn't get $class.$id", E_USER_ERROR);
}
Versioned::$reading_stage = $oldStage;
@ -776,7 +776,7 @@ class Versioned extends DataObjectDecorator {
$baseTable = ClassInfo::baseDataClass($class);
$query = singleton($class)->buildVersionSQL("\"{$baseTable}\".\"RecordID\" = $id AND \"{$baseTable}\".\"Version\" = $version");
$record = $query->execute()->record();
$className = $record[ClassName];
$className = $record['ClassName'];
if(!$className) {
Debug::show($query->sql());
Debug::show($record);