Skip to content

Commit

Permalink
Merge pull request #9 from ht2/master
Browse files Browse the repository at this point in the history
Fix issue with asVersion in ContextActivities not checking for pre-existence of return result correctly
  • Loading branch information
brianjmiller committed Jun 11, 2014
2 parents 2fc4614 + b2297d7 commit f11906a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ContextActivities.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function asVersion($version) {
foreach (self::$directProps as $k) {
$inner = $this->$k;
if (isset($inner) && count($inner) > 0) {
$result = $result || array();
$result = $result ?: array();

$result[$k] = array();

Expand Down

0 comments on commit f11906a

Please sign in to comment.