summaryrefslogtreecommitdiff
path: root/kohana/helpers/html.php
diff options
context:
space:
mode:
Diffstat (limited to 'kohana/helpers/html.php')
-rw-r--r--kohana/helpers/html.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/kohana/helpers/html.php b/kohana/helpers/html.php
index b11ea755..d1f09612 100644
--- a/kohana/helpers/html.php
+++ b/kohana/helpers/html.php
@@ -307,7 +307,7 @@ class html_Core {
$length = strlen($suffix);
- if (substr_compare($href, $suffix, -$length, $length, FALSE) !== 0)
+ if ( $length > 0 AND substr_compare($href, $suffix, -$length, $length, FALSE) !== 0)
{
// Add the defined suffix
$href .= $suffix;