dediupit / clients-oriented-ftp

Automatically exported from code.google.com/p/clients-oriented-ftp
0 stars 0 forks source link

unexpected T_FUNCTION in upload-import-orphans.php #391

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce :
1. Login as admin
2. Clic on Files/Find orphan files

Expected output : The Orphan files page

Got result : Parse error: syntax error, unexpected T_FUNCTION in 
upload-import-orphans.php on line 113

Line 113 is :
$files_to_add = array_filter($files_to_add, function ($item) use ($search) {

ProjectSend version : r514
PHP version 5.2.6
OS : Linux Debian

Original issue reported on code.google.com by nicolas....@gmail.com on 12 Nov 2013 at 11:01

GoogleCodeExporter commented 8 years ago
Note : Could make the page working by changing :

$files_to_add = array_filter($files_to_add, function ($item) use ($search) 
{...});

to :

$files_to_add = array_filter($files_to_add, "tempFct"); function tempFct 
($item,$search) {...}

Original comment by nicolas....@gmail.com on 12 Nov 2013 at 11:11

GoogleCodeExporter commented 8 years ago
Thanks for posting your solution! It's cleaner that the one used on r515!

Original comment by i...@subwaydesign.com.ar on 13 Nov 2013 at 12:59