Skip to content

Commit

Permalink
Trivial
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrsmk committed Feb 23, 2015
1 parent c7f0393 commit ab96dda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Chernozem 3.0.2
Chernozem 3.0.3
===============

Chernozem is an advanced dependency injection container based on the `ArrayAccess` PHP core object, like [Pimple](http://pimple.sensiolabs.org/), but with different features.
Expand Down
6 changes: 4 additions & 2 deletions src/Chernozem.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,12 @@ public function offsetGet($key){
return $this->$_key;
}
// Container
else if($this->__chernozem_values[$key]){
else if(isset($this->__chernozem_values[$key])){
return $this->__chernozem_service($key,$this->__chernozem_values[$key]);
}
return null;
else{
return null;
}
}

/*
Expand Down

0 comments on commit ab96dda

Please sign in to comment.