Plugin Directory

Changeset 3326025


Ignore:
Timestamp:
07/11/2025 02:59:01 AM (8 months ago)
Author:
ilvchandan
Message:

Uploading Rectified Class File.

Location:
email-otp-authenticator
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • email-otp-authenticator/tags/6.2.0/lib/emailotpauthn-class.php

    r3323235 r3326025  
    3535            $formnoticentxt = get_fix_option("emailotpauthn_formnoticentxt","not_initiated");
    3636            if(strcasecmp($formnoticentxt,"not_initiated")==0){
    37                 $newnoticentxt = "";
    38                 for ($nodx = 0; $nodx < count($formtexts); $nodx++) {
    39                     if(isset($formtexts[$nodx][2]) && !empty($formtexts[$nodx][2])){
    40                         if(!isset($extrnlcvrbl[$nodx]) || empty($extrnlcvrbl[$nodx])){
    41                             $extrnlcvrbl[$nodx] = $formtexts[$nodx][2];
    42                             $newnoticentxt .= $formtexts[$nodx][2] . "#-ntbreak-#";
     37                if(isset($formtexts) && !empty($formtexts)){
     38                    $newnoticentxt = "";
     39                    for ($nodx = 0; $nodx < count($formtexts); $nodx++) {
     40                        if(isset($formtexts[$nodx][2]) && !empty($formtexts[$nodx][2])){
     41                            if(!isset($extrnlcvrbl[$nodx]) || empty($extrnlcvrbl[$nodx])){
     42                                $extrnlcvrbl[$nodx] = $formtexts[$nodx][2];
     43                                $newnoticentxt .= $formtexts[$nodx][2] . "#-ntbreak-#";
     44                            }
    4345                        }
    4446                    }
     47                    $newnoticentxt = trim($newnoticentxt,"#-ntbreak-#");
     48                    update_option("emailotpauthn_formnoticentxt", $newnoticentxt);
    4549                }
    46                 $newnoticentxt = trim($newnoticentxt,"#-ntbreak-#");
    47                 update_option("emailotpauthn_formnoticentxt", $newnoticentxt);
    4850            } else {
    4951                $formnoticentxt = "#-ntbreak-#" . $formnoticentxt;
  • email-otp-authenticator/trunk/lib/emailotpauthn-class.php

    r3323235 r3326025  
    3535            $formnoticentxt = get_fix_option("emailotpauthn_formnoticentxt","not_initiated");
    3636            if(strcasecmp($formnoticentxt,"not_initiated")==0){
    37                 $newnoticentxt = "";
    38                 for ($nodx = 0; $nodx < count($formtexts); $nodx++) {
    39                     if(isset($formtexts[$nodx][2]) && !empty($formtexts[$nodx][2])){
    40                         if(!isset($extrnlcvrbl[$nodx]) || empty($extrnlcvrbl[$nodx])){
    41                             $extrnlcvrbl[$nodx] = $formtexts[$nodx][2];
    42                             $newnoticentxt .= $formtexts[$nodx][2] . "#-ntbreak-#";
     37                if(isset($formtexts) && !empty($formtexts)){
     38                    $newnoticentxt = "";
     39                    for ($nodx = 0; $nodx < count($formtexts); $nodx++) {
     40                        if(isset($formtexts[$nodx][2]) && !empty($formtexts[$nodx][2])){
     41                            if(!isset($extrnlcvrbl[$nodx]) || empty($extrnlcvrbl[$nodx])){
     42                                $extrnlcvrbl[$nodx] = $formtexts[$nodx][2];
     43                                $newnoticentxt .= $formtexts[$nodx][2] . "#-ntbreak-#";
     44                            }
    4345                        }
    4446                    }
     47                    $newnoticentxt = trim($newnoticentxt,"#-ntbreak-#");
     48                    update_option("emailotpauthn_formnoticentxt", $newnoticentxt);
    4549                }
    46                 $newnoticentxt = trim($newnoticentxt,"#-ntbreak-#");
    47                 update_option("emailotpauthn_formnoticentxt", $newnoticentxt);
    4850            } else {
    4951                $formnoticentxt = "#-ntbreak-#" . $formnoticentxt;
Note: See TracChangeset for help on using the changeset viewer.