Skip to content

Commit

Permalink
Merge pull request #4 from NexwayGroup/fix-undefined-resource-notice
Browse files Browse the repository at this point in the history
Fix undefined resource notice
  • Loading branch information
maegnes committed Dec 10, 2015
2 parents 5a3d879 + c62c97d commit ffe9ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SlimCachingManager/ResourceHandler/Textfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function _readData()
*/
public function read($resource = null)
{
return (is_array($this->_data[$resource])) ? $this->getObject($this->_data[$resource]) : null;
return (isset($this->_data[$resource]) && is_array($this->_data[$resource])) ? $this->getObject($this->_data[$resource]) : null;
}

/**
Expand Down

0 comments on commit ffe9ea0

Please sign in to comment.