From 2811c1320b1f5a2fb3569f3a5be7fe3a89946d2d Mon Sep 17 00:00:00 2001 From: Mohammad Zubair Ali Date: Wed, 19 Jun 2024 15:02:44 +0530 Subject: [PATCH] fixed php warning if quiz_settings are blank --- php/classes/class-qsm-contact-manager.php | 4 ++-- php/classes/class-qsm-install.php | 4 +++- php/classes/class-qsm-migrate.php | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/php/classes/class-qsm-contact-manager.php b/php/classes/class-qsm-contact-manager.php index 70e7ba61d..1b89791f1 100644 --- a/php/classes/class-qsm-contact-manager.php +++ b/php/classes/class-qsm-contact-manager.php @@ -569,7 +569,7 @@ public static function generate_contact_field( $field, $index, $quiz_options, $d /** * Add options validation */ - if ( isset( $field['options'] ) && !empty( trim( $field['options'] ) ) ) { + if ( isset( $field['options'] ) && ! empty( trim( $field['options'] ) ) ) { ?>
@@ -603,7 +603,7 @@ class="qmn_quiz_radio" $fieldAttr .= " autocomplete='off' "; } // If REQUIRED is set then assigning the required class - if ( isset( $field['options'] ) && !empty( trim( $field['options'] ) ) ) { + if ( isset( $field['options'] ) && ! empty( trim( $field['options'] ) ) ) { ?>