#6 Undefined variable $dir_list

open
nobody
General (8)
5
2004-12-14
2004-12-14
Anonymous
No

I get the following when trying to copy a file. It
appears that the return function is not working in the
fun_copy_move dir_list function when there are no
directories to display.

Notice: Undefined variable: dir_list in
c:\inetpub\wwwroot\techsupp\Tools\quixplorer_2_3_1\.include\fun_copy_move.php
on line 56

Notice: Undefined variable: dir_list in
c:\inetpub\wwwroot\techsupp\Tools\quixplorer_2_3_1\.include\fun_copy_move.php
on line 57

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I used the @ symbol in front of the $dir_list variable in
    lines 56 and 57 to suppress the error, and all works fine now.

    if(is_array(@$dir_list)) ksort(@$dir_list);
    return @$dir_list;

     
  • Nobody/Anonymous

    Logged In: NO

    I used the @ symbol in front of the $dir_list variable in
    lines 56 and 57 to suppress the error, and all works fine now.

    if(is_array(@$dir_list)) ksort(@$dir_list);
    return @$dir_list;

     
  • Nobody/Anonymous

    Logged In: NO

    I added a @ symbol in front of the $dir_list variable to
    simply suppress the errors. Works fine so far...

    if(is_array(@$dir_list)) ksort(@$dir_list);
    return @$dir_list;

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks