Menu

#12 $break variable declaration

open
nobody
None
7
2006-10-03
2006-10-03
punjabi
No

when line break is not enabled $break has no value and
hence nasty errors on terminal

(line 101 of class_command.php)

changed from line 95 to line 101

##FROM

    //If it set to true, set some breaks
    if\($\_\_line\_wrap\) \{
        $break = "\n";
    \}

    echo $break . $ansi\_color . $\_\_text . $break . "\033\[0m";

##TO

    $break = "";
    //If it set to true, set some breaks
    if\($\_\_line\_wrap\) \{
        $break = "\n";
    \}

    echo $break . $ansi\_color . $\_\_text . $break . "\033\[0m";

Hope this helps others. I have attached modified file.

Discussion

  • punjabi

    punjabi - 2006-10-03
     
  • punjabi

    punjabi - 2006-10-03
    • priority: 5 --> 7
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.