From e4209328270a426b474d4107f3e314cbf5914c63 Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Mon, 11 Dec 2006 03:14:32 +0000 Subject: [PATCH] merged fix for MDL-7270, fixing warnings --- mod/data/field/picture/field.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/data/field/picture/field.class.php b/mod/data/field/picture/field.class.php index 9f3a568a7f..847668ac99 100755 --- a/mod/data/field/picture/field.class.php +++ b/mod/data/field/picture/field.class.php @@ -203,9 +203,9 @@ class data_field_picture extends data_field_file { break; } - - $thumbwidth = $this->field->param4; - $thumbheight = $this->field->param5; + // fix for MDL-7270 + $thumbwidth = isset($this->field->param4)?$this->field->param4:''; + $thumbheight = isset($this->field->param5)?$this->field->param5:''; if ($thumbwidth || $thumbheight) { // Only if either width OR height specified do we want a thumbnail -- 2.39.5