Welcome Guest, Not a member yet? Register   Sign In
Word Wrap - Fatal Error
#1

[eluser]Phil Sturgeon[/eluser]
Was using word_wrap and got a strange error:

Quote:Fatal error: Using $this when not in object context in P:\Web Sites\kicknote\system\helpers\text_helper.php on line 395

Downloaded a fresh version of the text helper just to make sure it wasnt destroyed during some of my awesome 'Find & Replace Coding' and its in there too...

Code:
// If $temp contains data it means we had to split up an over-length
        // word into smaller chunks so we'll add it back to our current line
        if ($temp != '')
        {
            $output .= $temp.$this->newline.$line;
        }
        else
        {
            $output .= $line;
        }

I cant seem to work out what the hell $this->newline is doing there. Its causing an error and I can see no reason why it should be there. $newline doesnt exist, $this isnt declared, its not in a function... what in the hell?


Messages In This Thread
Word Wrap - Fatal Error - by El Forum - 11-16-2007, 07:16 AM
Word Wrap - Fatal Error - by El Forum - 11-16-2007, 07:18 AM
Word Wrap - Fatal Error - by El Forum - 11-16-2007, 07:21 AM
Word Wrap - Fatal Error - by El Forum - 11-16-2007, 12:54 PM
Word Wrap - Fatal Error - by El Forum - 11-29-2007, 05:49 AM
Word Wrap - Fatal Error - by El Forum - 11-29-2007, 06:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB