MDL-29462 html_to_text('0') gives '', not '0'.

This commit is contained in:
Tim Hunt
2011-09-21 16:42:33 +01:00
parent 136fa79e34
commit 4e92a71fb3
3 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -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);
}