From: Aaron Schulz Date: Mon, 7 Apr 2014 23:07:55 +0000 (-0700) Subject: Handle null file handles in UIDGenerator::_destruct() X-Git-Tag: 1.31.0-rc.0~16318^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=3a4e66ca92750a81ad196f16c4806c154bd6ce3f;p=lhc%2Fweb%2Fwiklou.git Handle null file handles in UIDGenerator::_destruct() Change-Id: I92f874e610b2ea32d34aeb35ddd4069fe0d721fc --- 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 ) ); } }