PHP error message
-
Hi,
I got this PHP error message after update to latest WPML and Gravity.
Gravity Forms 2.1.2
WPML Multilingual CMS 3.6.3You got the msg if you click on Gravity forms:
wp-admin/admin.php?page=gf_edit_formsNotice: Undefined index: all in /wp-content/plugins/events-manager-wpml/events-manager-wpml.php on line 348
I think you need to change:
return $sitepress_langs[$sitepress_lang]['default_locale'];
With this:
if( !empty($sitepress_langs[$sitepress_lang]) ){ return $sitepress_langs[$sitepress_lang]['default_locale']; }else{ return get_locale(); }
- The topic ‘PHP error message’ is closed to new replies.