ryansuitposungkono / openjs-grid

Automatically exported from code.google.com/p/openjs-grid
0 stars 0 forks source link

Undefined offset: grid.php on line 319 #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run demo
2. check apache error log 

What is the expected output? What do you see instead?

PHP Notice:  Undefined offset: 1 in 
/var/www/vhosts/getsystems.net/fed/grid/grid.php on line 319, referer: 
http://fed.getsystems.net/grid/

What version of the product are you using? On what operating system?
v1.8, ubuntu 11.04

Please provide any additional information below.

To avoid filling the error log file with junk, we should check the return of 
preg_match prior to looking for the match.

grid.php starting at line 318
//               preg_match('/\(([^\)]+)/',$type,$matches);
//               $colData[$field] = array("maxLength"=>$matches[1]);
                 if ( preg_match('/\(([^\)]+)/',$type,$matches) ) 
                      $colData[$field] = array("maxLength"=>$matches[1]);

Original issue reported on code.google.com by dave.sa...@gmail.com on 8 Sep 2011 at 6:33

GoogleCodeExporter commented 9 years ago
Good call sir

Original comment by Seancla...@gmail.com on 21 Sep 2011 at 5:10