phat code "I love deadlines. I love the whooshing sound they make as they fly by." - Douglas Adams
Main

Projects

Downloads

Articles

Links

Forum

 

View Message

Back to Messages
Plasma Sun Apr 23 2006 at 1:27 am
hrmm, looks like a PHP5 problem
 
 
Apparently $this is reserved in PHP5. Changing the variable name to anything else will fix it. For example:

function array_stripslashes ($array)
{
    if (is_array($array))
    {
        foreach ($array as $index => $this_line)
        {
            $array[$index] = array_stripslashes($this_line);
        }
    }
    else
    {
        $array = str_replace(''', "'", stripslashes($array));
    }

    return $array;
}

 
 
 
 

Reply to this Message

Name
Subject
Message

No HTML is allowed, except for <code> <b> <i> <u> in the message only.
All URLs and email addresses will automatically be converted to hyperlinks.