summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--includes/unicode.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/includes/unicode.inc b/includes/unicode.inc
index 0d5c2bc41..20ce94b95 100644
--- a/includes/unicode.inc
+++ b/includes/unicode.inc
@@ -441,6 +441,7 @@ function drupal_substr($text, $start, $length = NULL) {
else {
$strlen = strlen($text);
// Find the starting byte offset
+ $bytes = 0;
if ($start > 0) {
// Count all the continuation bytes from the start until we have found
// $start characters