Support » Plugin: Gravity Forms Salesforce Add-on » Getting "Warning: array_key_exists()" at the top of the page

  • Resolved vitalunfolding

    (@vitalunfolding)


    I’m getting the following warning:

    Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /wp-content/plugins/gravity-forms-salesforce/salesforce.php on line 438

    if((!empty($data[$label]) && !empty($value) && $value !== '0') || empty($data[$label]) && array_key_exists($label, $defaults)) {
    				   		$data[$label] = $value ;

    I’ve seen some similar issues with other WordPress plugins and the popular solution appears to be to wrap the $label in single quotes like this: ‘$label’. Any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting "Warning: array_key_exists()" at the top of the page’ is closed to new replies.