aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef
diff options
context:
space:
mode:
authorKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-07-06 21:33:07 +0200
committerKlaus Weidenbach <Klaus.Weidenbach@gmx.net>2017-07-06 21:35:10 +0200
commit31d1a728544f7ae740463cd0d1f345544175fcd2 (patch)
treefdfd2b1908a87f6e1396046ee95307506c079172 /vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef
parentf9a989fe1b0944b9b7d896b23544522fd42c4fd7 (diff)
downloadvolse-hubzilla-31d1a728544f7ae740463cd0d1f345544175fcd2.tar.gz
volse-hubzilla-31d1a728544f7ae740463cd0d1f345544175fcd2.tar.bz2
volse-hubzilla-31d1a728544f7ae740463cd0d1f345544175fcd2.zip
:arrow_up: Updating some PHP libraries.
htmlpurifier (v4.9.2 => v4.9.3) with bugfix for PHP7.1 sabre/http (4.2.2 => 4.2.3)
Diffstat (limited to 'vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef')
-rw-r--r--vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/List.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/List.php b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/List.php
index 5a53a4b49..4fc70e0ef 100644
--- a/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/List.php
+++ b/vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/List.php
@@ -50,7 +50,7 @@ class HTMLPurifier_ChildDef_List extends HTMLPurifier_ChildDef
// a little sanity check to make sure it's not ALL whitespace
$all_whitespace = true;
- $current_li = false;
+ $current_li = null;
foreach ($children as $node) {
if (!empty($node->is_whitespace)) {
@@ -71,7 +71,7 @@ class HTMLPurifier_ChildDef_List extends HTMLPurifier_ChildDef
// to handle non-list elements; non-list elements should
// not be appended to an existing li; only li created
// for non-list. This distinction is not currently made.
- if ($current_li === false) {
+ if ($current_li === null) {
$current_li = new HTMLPurifier_Node_Element('li');
$result[] = $current_li;
}