mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
85cdbd8996
commit
8e62d36c5f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user