mlanthaler: Bugfix: Added isset() to prevent E_NOTICE error.

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42023 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-16 01:52:35 +00:00
parent fd795f83bb
commit 76797c02a6

View File

@ -81,7 +81,7 @@ class Form extends ViewableData {
}
// load data in from previous submission upon error
if($errorInfo['data'])
if(isset($errorInfo['data']))
$this->loadDataFrom($errorInfo['data']);
}