From 86d39e3c001375350da4841788b8931a3af79c6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Horsk=C3=BD?= Date: Wed, 29 Aug 2018 20:49:08 +0200 Subject: [PATCH] Fix "PHP Notice: Undefined variable: GLOBALS" --- OLE/ChainedBlockStream.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OLE/ChainedBlockStream.php b/OLE/ChainedBlockStream.php index 49bfcbb..88255b1 100644 --- a/OLE/ChainedBlockStream.php +++ b/OLE/ChainedBlockStream.php @@ -144,7 +144,9 @@ function stream_open($path, $mode, $options, &$openedPath) function stream_close() { $this->ole = null; - unset($GLOBALS['_OLE_INSTANCES']); + if (isset($GLOBALS)) { + unset($GLOBALS['_OLE_INSTANCES']); + } } /**