Fixing odd error that crops up when checking for NULL in static array.

This commit is contained in:
Matt Butcher 2012-03-16 14:07:03 -05:00
parent df1542e56b
commit d3fce30a92

View File

@ -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];
}