Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
[zendframework/zendframework#2211] add class_exists check
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Aug 21, 2012
1 parent ed1c468 commit 5bd9f85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ public function getUriHandler()
if (null === $this->uriHandler) {
// Lazy load the base Uri handler
$this->uriHandler = new UriHandler();

} elseif (is_string($this->uriHandler)) {
} elseif (is_string($this->uriHandler) && class_exists($this->uriHandler)) {
// Instantiate string Uri handler that references a class
$this->uriHandler = new $this->uriHandler;
}

Expand Down

0 comments on commit 5bd9f85

Please sign in to comment.