Free Adult Tube-Video Script Forum

Full Version: TAG search error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
When i press on a tag then i will go to a url like http://linkert.nl/?option=tag&tag=restroom+bathroom

When i look on tags then i will get keeping the message :
Warning: shuffle() expects parameter 1 to be array, null given in /home/promotie/domains/linkert.nl/public_html/include/functions.php on line 2040

Warning: array_slice() expects parameter 1 to be array, null given in /home/promotie/domains/linkert.nl/public_html/include/functions.php on line 2041

Warning: Invalid argument supplied for foreach() in /home/promotie/domains/linkert.nl/public_html/include/functions.php on line 2043

Please how to solf that ?

Its got somethin to do with this code.

shuffle($kelimeler_arr);
$kelimeler_arr = array_slice($kelimeler_arr, 0, 5);

foreach($kelimeler_arr as $deger) {
$kelimeler=$kelimeler."<br>".$deger;
}

I removed it out of the script and the error is gone
you can also put some code as below before shuffle($kelimeler_arr);


PHP Code:
if (is_array($kelimeler_arr)==false) {return "";}

shuffle($kelimeler_arr);

.......... 
Reference URL's