Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Free Torrent Source (http://www.bvlist.com/forumdisplay.php?f=25)
-   -   [FIX] Missing function "my_substrr" (http://www.bvlist.com/showthread.php?t=4058)

benjaminbih 26th December 2009 14:43

[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;
  } 



All times are GMT +2. The time now is 11:28.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.