Permalink
Browse files

MINOR: fixed notice level error when ImageSource isnt set

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@97004 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent efce7b9 commit cd64c943f78b10180014f9585c81ce7cd8a257d1 Will Rossiter committed with sminnee Jan 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/model/Image.php
View
2 core/model/Image.php
@@ -704,7 +704,7 @@ function DeleteImageForm() {
* Save the data in this form.
*/
function save($data, $form) {
- if($data['ImageSource'] != 'existing' && $data['Upload']['size'] == 0) {
+ if(!isset($data['ImageSource']) || ($data['ImageSource'] != 'existing' && $data['Upload']['size'] == 0)) {
// No image has been uploaded
Director::redirectBack();
return;

0 comments on commit cd64c94

Please sign in to comment.