Permalink
Browse files

Prevent errors when mbstring.func_overload == 7 [patch contributed by…

… Google Code user dhahler]
  • Loading branch information...
1 parent a01fdf0 commit f89f32db50e943515c7361ebcfb6a2cacf7dc91a @rgrove committed Oct 13, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 jsmin.php
View
@@ -138,7 +138,7 @@ protected function get() {
if ($c === null) {
if ($this->inputIndex < $this->inputLength) {
- $c = $this->input[$this->inputIndex];
+ $c = substr($this->input, $this->inputIndex, 1);
$this->inputIndex += 1;
} else {
$c = null;

0 comments on commit f89f32d

Please sign in to comment.