View Single Post
  #1  
Old 26th December 2009, 14:43
benjaminbih benjaminbih is offline
Senior Member
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Default [FIX] Missing function "my_substrr"
Missing function my_substrr in /include/functions.php

The following function is not present but required by an other functions.

Add in /include/functions.php after the whole function my_datee( ):
PHP Code:
  function my_substrr ($string$start$length '')
  {
    if (
function_exists ('mb_substr'))
    {
      if (
$length != '')
      {
        
$cut_string mb_substr ($string$start$length);
      }
      else
      {
        
$cut_string mb_substr ($string$start);
      }
    }
    else
    {
      if (
$length != '')
      {
        
$cut_string substr ($string$start$length);
      }
      else
      {
        
$cut_string substr ($string$start);
      }
    }

    return 
$cut_string;
  } 
Reply With Quote
The Following 2 Users Say Thank You to benjaminbih For This Useful Post:
Phogo (29th December 2009), yoligim (3rd January 2010)