fclose requires a resource, not a string.

This commit is contained in:
Alexander Concha 2015-05-19 09:16:07 +02:00 committed by Mike Jolley
parent 2740db17c0
commit 7896b49684
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class WC_Logger {
*/
public function __destruct() {
foreach ( $this->_handles as $handle ) {
@fclose( escapeshellarg( $handle ) );
@fclose( $handle );
}
}