From 6e2358b23208ef7e2119d95b0cea1537d9a863c8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 18 Jun 2008 03:36:24 +0000 Subject: - Patch #270045 by drewish, Susurrus: clean up return values. --- includes/unicode.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'includes/unicode.inc') diff --git a/includes/unicode.inc b/includes/unicode.inc index cb3b0a8fc..93a522d09 100644 --- a/includes/unicode.inc +++ b/includes/unicode.inc @@ -121,7 +121,7 @@ function unicode_requirements() { * @param &$data * The XML data which will be parsed later. * @return - * An XML parser object. + * An XML parser object or FALSE on error. */ function drupal_xml_parser_create(&$data) { // Default XML encoding is UTF-8 @@ -149,7 +149,7 @@ function drupal_xml_parser_create(&$data) { } else { watchdog('php', 'Could not convert XML encoding %s to UTF-8.', array('%s' => $encoding), WATCHDOG_WARNING); - return 0; + return FALSE; } } -- cgit v1.2.3