From 2a450a0727aa8f2a6be7d523fad2d908f3027413 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Tue, 26 Nov 2013 07:49:13 -0600 Subject: [PATCH] lint: Fix undefined variable error --- include/html2text.php | 1 + setup/test/tests/stubs.php | 1 + 2 files changed, 2 insertions(+) diff --git a/include/html2text.php b/include/html2text.php index 1064fc540..322342fe0 100644 --- a/include/html2text.php +++ b/include/html2text.php @@ -186,6 +186,7 @@ class HtmlInlineElement { function render($width, $options) { $output = ''; + $after_block = false; $this->ws = $this->getStyle('white-space', 'normal'); foreach ($this->children as $c) { if ($c instanceof DOMText) { diff --git a/setup/test/tests/stubs.php b/setup/test/tests/stubs.php index 2161f5211..5a78251f3 100644 --- a/setup/test/tests/stubs.php +++ b/setup/test/tests/stubs.php @@ -31,6 +31,7 @@ class ReflectionClass { class DomNode { function hasChildNodes() {} + function removeChild() {} } class DomNodeList { -- GitLab