[dev] commit: horde/lib Horde.php String.php
    Jon Knepher 
    jbk at wild-e.com
       
    Sat Jan 11 21:46:25 PST 2003
    
    
  
Length needs to be set if mbstring is not loaded in String::substr...
Jon
Index: String.php
===================================================================
RCS file: /repository/horde/lib/String.php,v
retrieving revision 1.7
diff -u -r1.7 String.php
--- String.php  11 Jan 2003 17:47:37 -0000      1.7
+++ String.php  12 Jan 2003 05:43:23 -0000
@@ -164,6 +164,9 @@
                 return $ret;
             }
         }
+        if (is_null($length)) {
+            $length = String::length($string);
+        }
         return substr($string, $start, $length);
     }
    
    
More information about the dev
mailing list