oops! fix using $prefix before it was defined.
This commit is contained in:
parent
259d384bcf
commit
ddec2cb313
@ -84,10 +84,12 @@ class WampConnection extends AbstractConnectionDecorator {
|
|||||||
$curieSeperator = ':';
|
$curieSeperator = ':';
|
||||||
|
|
||||||
if (preg_match('/http(s*)\:\/\//', $uri) == false) {
|
if (preg_match('/http(s*)\:\/\//', $uri) == false) {
|
||||||
if (strpos($uri, $curieSeperator) !== false && isset($this->WAMP->prefixes[$prefix]) === true) {
|
if (strpos($uri, $curieSeperator) !== false) {
|
||||||
list($prefix, $action) = explode($curieSeperator, $uri);
|
list($prefix, $action) = explode($curieSeperator, $uri);
|
||||||
|
|
||||||
return $this->WAMP->prefixes[$prefix] . '#' . $action;
|
if(isset($this->WAMP->prefixes[$prefix]) === true){
|
||||||
|
return $this->WAMP->prefixes[$prefix] . '#' . $action;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user