Skip to content

Commit

Permalink
Function get value of segment updated
Browse files Browse the repository at this point in the history
  • Loading branch information
anteriovieira committed Sep 17, 2015
1 parent e182a98 commit 0014cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OwenIt/Auditing/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function valueSegment($object, $key, $default)

foreach (explode('.', $key) as $segment)
{
$object = is_object($object) ? $object : (object) $object;
$object = is_array($object) ? (object) $object : $object;
if (! isset($object->{$segment}) ) {
return $default;
}
Expand Down

0 comments on commit 0014cef

Please sign in to comment.