Fixing odd error that crops up when checking for NULL in static array.
This commit is contained in:
parent
df1542e56b
commit
d3fce30a92
@ -1498,7 +1498,8 @@ class StreamWrapper {
|
||||
$endpoint = $this->cxt('swift_endpoint');
|
||||
|
||||
$serviceCatalog = NULL;
|
||||
if (isset(self::$serviceCatalogCache[$token])) {
|
||||
|
||||
if (!empty($token) && isset(self::$serviceCatalogCache[$token])) {
|
||||
$serviceCatalog = self::$serviceCatalogCache[$token];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user