From 35b1fbce01b2e790264c0d88dc610db26e7c1732 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Tue, 19 Apr 2011 22:46:17 +0100 Subject: [PATCH] Explicitly initialize anonModule to null. Signed-off-by: Edward Z. Yang --- NEWS | 1 + library/HTMLPurifier/HTMLDefinition.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 7d1e8a94..65f8dd5b 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier to http. Reported by Neike Taika-Tessaro. - Color keywords are now case insensitive. Thanks Yzmir Ramirez for reporting. +- Explicitly initialize anonModule variable to null. 4.3.0, released 2011-03-27 # Fixed broken caching of customized raw definitions, but requires an diff --git a/library/HTMLPurifier/HTMLDefinition.php b/library/HTMLPurifier/HTMLDefinition.php index 33bb38ac..b079d44c 100644 --- a/library/HTMLPurifier/HTMLDefinition.php +++ b/library/HTMLPurifier/HTMLDefinition.php @@ -147,7 +147,7 @@ class HTMLPurifier_HTMLDefinition extends HTMLPurifier_Definition return $this->_anonModule; } - private $_anonModule; + private $_anonModule = null; // PUBLIC BUT INTERNAL VARIABLES -------------------------------------- -- 2.11.4.GIT