MDL-29462 html_to_text('0') gives '', not '0'.
This commit is contained in:
+1
-1
@@ -335,7 +335,7 @@ class html2text
|
||||
*/
|
||||
function html2text( $source = '', $from_file = false, $do_links = true, $width = 75 )
|
||||
{
|
||||
if ( !empty($source) ) {
|
||||
if ($source !== '') {
|
||||
$this->set_html($source, $from_file);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user