When I enable error messages I get about 20 error messages that the index is not defined.
As far as I see there is no default initialization of some arrays (option & internal).
Two Examples:
Notice: Undefined index: subGrid in/home/vendor/phpgrid/lib/inc/jqgrid_dist.phpon lineĀ 973
Notice: Undefined index: frozen in/home/vendor/phpgrid/lib/inc/jqgrid_dist.phpon lineĀ 1842
Since I don’t want to initalize all the settings in the code, I think they should be set in phpgrid core files.
1 Answers
Yes, NOTICES should be handled inside library. But currently they are not.
It’s recommended to disable them via error_reporting() as they are not harmful.
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED);
Your Answer