fixed bug in view composers. changed crypter alias.

This commit is contained in:
Taylor Otwell
2011-10-05 23:22:25 -05:00
parent 1cafc02d55
commit 48715bbb7d
2 changed files with 2 additions and 2 deletions

View File

@@ -131,7 +131,7 @@ class View {
// could have an array value in which a "name" key exists.
foreach (static::$composers as $key => $value)
{
if ($name === $value or (isset($value['name']) and $name === $value['name'])) { return $key; }
if ($name === $value or (is_array($value) and $name === Arr::get($value, 'name'))) return $key;
}
}