Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: array_intersect_assoc(): at least 2 parameters are required, 1 given in ....../Torrent.php on line 710 #43

Open
11938 opened this issue Feb 8, 2018 · 1 comment

Comments

@11938
Copy link

11938 commented Feb 8, 2018

Warning: array_intersect_assoc(): at least 2 parameters are required, 1 given in /storage/ssd2/491/3580491/public_html/files/Torrent.php on line 710

Warning: array_diff_assoc(): Argument #2 is not an array in /storage/ssd2/491/3580491/public_html/files/Torrent.php on line 720

Warning: end() expects parameter 1 to be array, null given in /storage/ssd2/491/3580491/public_html/files/Torrent.php on line 725

@AlphaOne89
Copy link

If an array is passed, it must contain at least two elements.

$torrent = new Torrent( array( 'test.mp3', 'test.jpg' ), 'http://torrent.tracker/annonce' );

The processing of the array and the error handling would need to be improved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants