Fixed Notice error

This commit is contained in:
CiviWare committed 2018-09-05 02:27:15 +05:30
1 parent ae7237f49b
commit 8dd89a41fb
1 file changed
+1 -1
+1 -1
View File
@@ -245,7 +245,7 @@ function entitytemplates_civicrm_pre($op, $objectName, $id, &$params) {
*
*/
function entitytemplates_civicrm_validateForm($formName, &$fields, &$files, &$form, &$errors) {
if ($form->_entityTemplate) {
if (property_exists($form, '_entityTemplate') && $form->_entityTemplate) {
if (!empty($fields['entity_template_title'])) {
$params = [
'title' => $fields['entity_template_title'],