From c448ab3f444999cc3de1d7d2cca4cf8c10cd31f9 Mon Sep 17 00:00:00 2001 From: Henning Bostelmann Date: Mon, 7 Nov 2016 21:59:37 +0000 Subject: [PATCH] MDL-54871 mod_data: Remove text field when forced name present --- mod/data/field/url/field.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/data/field/url/field.class.php b/mod/data/field/url/field.class.php index 6769c81a764..4220877ae2d 100644 --- a/mod/data/field/url/field.class.php +++ b/mod/data/field/url/field.class.php @@ -63,7 +63,7 @@ class data_field_url extends data_field_base { } } - $autolinkable = !empty($this->field->param1) and empty($this->field->param2); + $autolinkable = !empty($this->field->param1) && empty($this->field->param2); $str = '
';