laravel/framework — pull request #645 by cmenke (2013-03-21 12:02:09+00:00)
Title: [Bugfix] Re-enable array_get to fetch "flat" array keys containing dots.

Fixes an issue introduced with #530, when using array_get to fetch flat array keys containing dots. These are used by e.g. Symony's Translation Component:

```php
// e.g. lang/en/messages.php
return array(
'symfony2.is.great' => 'Symfony2 is great',
'symfony2.is.amazing' => 'Symfony2 is amazing',
'symfony2.has.bundles' => 'Symfony2 has bundles',
'user.login' => 'Login',
);
```
Example taken from [Symfony Translation Docs](http://symfony.com/doc/2.1/book/translation.html).

This PR simply makes array_get check if the array key exists (and return its value if true), before attempting to iterate through the array using the keys the dot-notation.