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

Conflicts:

	lib/simpletest/testweblib.php
This commit is contained in:
Tim Hunt
2011-09-21 16:40:18 +01:00
parent 51e1e3d536
commit 8dce32bb7b
3 changed files with 24 additions and 1 deletions
+1 -1
View File
@@ -333,7 +333,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);
}