diff options
author | git-marijus <mario@mariovavti.com> | 2017-07-07 12:16:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-07 12:16:27 +0200 |
commit | d077f15270e7c6954a7fb4d6e4d60d6dbb0777c7 (patch) | |
tree | fdfd2b1908a87f6e1396046ee95307506c079172 /vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/List.php | |
parent | b16e4c558ffb47d2b48f0dab97e4389c9198f831 (diff) | |
parent | 31d1a728544f7ae740463cd0d1f345544175fcd2 (diff) | |
download | volse-hubzilla-d077f15270e7c6954a7fb4d6e4d60d6dbb0777c7.tar.gz volse-hubzilla-d077f15270e7c6954a7fb4d6e4d60d6dbb0777c7.tar.bz2 volse-hubzilla-d077f15270e7c6954a7fb4d6e4d60d6dbb0777c7.zip |
Merge pull request #822 from dawnbreak/composer-light
Add optimize-autoloader to composer config.
Diffstat (limited to 'vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/List.php')
-rw-r--r-- | vendor/ezyang/htmlpurifier/library/HTMLPurifier/ChildDef/List.php | 4 |
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; } |