emposha/FCBKcomplete — Issue #101: Firefox critical error - undefined variable
Author: xavierp
Created: 2011-10-19 09:54:58+00:00
State: open

On firefox i have a bug on line 64 :
```php
if (name.indexOf("[]") == -1) {
name = name + "[]";
}
``
Undefined variable 'name'.

I fixed it with:

```php
if (typeof(name) != 'undefined' && name.indexOf("[]") == -1) {
name = name + "[]";
}
```