I am using version 1.2.2. There are undefined index in various places. I know by setting ^E_NOTICE can remove the message. However, should undefined index be checked before using it?
Here is the notices I got.
PHP Notice: Undefined index: PID in PATH TO MY WordPress\wp-content\plugins\nextgen-gallery-custom-fields\ngg-custom-fields.php on line 298
If I change line 298 from
if(!$nggcf_values[$pid])
to
if(isset($nggcf_values[$pid]) and !$nggcf_values[$pid])
I got
PHP Notice: Trying to get property of non-object in PATH TO MY WordPress\wp-content\plugins\nextgen-gallery-custom-fields\ngg-custom-fields.php on line 807
Because of the new notice, I didn't go any further since it might break the plug-in. Below are other notices which show up in admin panel.
PHP Notice: Undefined index: mode in PATH TO MY WordPress\wp-content\plugins\nextgen-gallery-custom-fields\ngg-custom-fields.php on line 342
PHP Notice: Undefined index: delete in PATH TO MY WordPress\wp-content\plugins\nextgen-gallery-custom-fields\ngg-custom-fields.php on line 391
PHP Notice: Undefined index: editname in PATH TO MY WordPress\wp-content\plugins\nextgen-gallery-custom-fields\ngg-custom-fields.php on line 426
PHP Notice: Undefined index: editlink in PATH TO MY WordPress\wp-content\plugins\nextgen-gallery-custom-fields\ngg-custom-fields.php on line 458
Is it possible to have those notices checked?
http://wordpress.org/extend/plugins/nextgen-gallery-custom-fields/