Plugin Directory

Changeset 3193765


Ignore:
Timestamp:
11/21/2024 05:42:45 AM (17 months ago)
Author:
zohocrm
Message:

Php latest version compatibility checking

Location:
zoho-crm-forms/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • zoho-crm-forms/trunk/Readme.txt

    r3192234 r3193765  
    77Author: Zoho CRM
    88Tested up to: 6.7
    9 Stable tag:1.7.9.9
     9Stable tag: 1.8.0.0
    1010License: GPLv2 or later
    11 Version: 1.7.9.9
     11Version: 1.8.0.0
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1313
     
    3053051.7.9.9
    306306Php latest version compatibility checking
     3071.8.0.0
     308Php latest version compatibility checking
    307309
    308310== Upgrade notice ==
  • zoho-crm-forms/trunk/includes/crmcontactform7.php

    r3178280 r3193765  
    169169
    170170        $mapping = $wpdb->get_results($wpdb->prepare("select crmformsfieldslable,thirdpartyfieldids from zcf_contactformrelation where thirdpartyformid=%d", $post_id) );
    171         foreach ($mapping as $key => $value) {
    172             $crmformsfieldslable[$key] = $value['crmformsfieldslable'];
    173             $thirdpartyfieldids[$key] = $value['thirdpartyfieldids'];
     171
     172        if (!empty($mapping)) {
     173            foreach ($mapping as $key => $value) {
     174                $crmformsfieldslable[$key] = $value['crmformsfieldslable'];
     175                $thirdpartyfieldids[$key] = $value['thirdpartyfieldids'];
     176            }
     177            $thirdpartyfieldids = array_flip($thirdpartyfieldids);
     178        } else {
     179            $thirdpartyfieldids = [];
    174180        }
    175181        $crmformsfieldquery = "SELECT a.field_name, a.field_values, a.field_type FROM zcf_zohocrmform_field_manager AS a JOIN zcf_zohocrm_formfield_manager AS b ON b.field_id = a.field_id JOIN zcf_contactformrelation AS c ON c.crmformsfieldid = b.rel_id WHERE c.thirdpartyformid = %d";
     
    177183$crmformsfieldName = $wpdb->get_results($wpdb->prepare($crmformsfieldquery, $post_id) );
    178184
    179         $thirdpartyfieldids = array_flip($thirdpartyfieldids);
     185        if (is_array($thirdpartyfieldids)) {
     186            $thirdpartyfieldids = array_flip($thirdpartyfieldids);
     187        } else {
     188            $thirdpartyfieldids = []; // Handle empty or invalid cases gracefully
     189        }
     190
    180191
    181192        foreach ($thirdpartyfieldids as $key => $value) {
  • zoho-crm-forms/trunk/includes/crmshortcodefunctions.php

    r3185097 r3193765  
    512512
    513513    function zcfupdateFieldsOrder($field_order, $shortcode_name) {
    514         $field_order = array_flip($field_order);
     514         if (!is_array($field_order)) {
     515            $field_order = array_flip($field_order);
     516        }else {
     517            $field_order = []; // Handle empty or invalid cases gracefully
     518        }
    515519        global $wpdb;
    516520        $get_shortcode_id = $wpdb->get_results($wpdb->prepare("select shortcode_id from zcf_zohoshortcode_manager where shortcode_name = %s and crm_type = %s", $shortcode_name, 'crmformswpbuilder'));
  • zoho-crm-forms/trunk/index.php

    r3192234 r3193765  
    44 * Plugin Name: Zoho CRM Lead Magnet
    55 * Description: Websites are one of the most important sources of leads for your business. That means your CRM system should be well integrated with your website to contextually capture each and every visitor to turn them into a lead.Introducing the Zoho CRM Lead Capture plugin for Wordpress. This lets you create webforms, embed them in your website, and automatically capture leads directly into your CRM with zero attenuation.Not only is the integration easy to set-up but it's also easy on your wallet.
    6  * Version: 1.7.9.9
     6 * Version: 1.8.8.0
    77 * ***************************************************************************************** */
    88if (!defined('ABSPATH'))
    99    exit;
    1010
    11         define( 'ZCF_VERSION', '1.7.9.9' );
     11        define( 'ZCF_VERSION', '1.8.0.0' );
    1212        define( 'ZCF_LBPLUGINFILE', __FILE__ );
    1313        define( 'ZCF_LBPLUGIN_URL', untrailingslashit( plugins_url( '', ZCF_LBPLUGINFILE ) ) );
Note: See TracChangeset for help on using the changeset viewer.