From 3a4e66ca92750a81ad196f16c4806c154bd6ce3f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 7 Apr 2014 16:07:55 -0700 Subject: [PATCH] Handle null file handles in UIDGenerator::_destruct() Change-Id: I92f874e610b2ea32d34aeb35ddd4069fe0d721fc --- includes/utils/UIDGenerator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/utils/UIDGenerator.php b/includes/utils/UIDGenerator.php index 0eac06e2ee..c7bb4f3ccb 100644 --- a/includes/utils/UIDGenerator.php +++ b/includes/utils/UIDGenerator.php @@ -500,6 +500,6 @@ class UIDGenerator { } function __destruct() { - array_map( 'fclose', $this->fileHandles ); + array_map( 'fclose', array_filter( $this->fileHandles ) ); } } -- 2.20.1