ruflin/Elastica — pull request #220 by lavoiesl (2012-07-17 08:19:41+00:00)
Title: added support for array in Query::setScriptFields.

Related: #215

If the parameter is an array, wraps in a ScriptFields.

This is because

```php
setScriptFields(array(
'test' => $script
));
```

is a bit simpler than

```php
$script
));
$query->setScriptFields($scriptFields);
```