View previous topic :: View next topic |
Author |
Message |
StandardsDT Basic Member

Joined: 24 Oct 2006
|
0. Posted: Wed Oct 25, 2006 9:20 am Post subject: Supernova Song list PHP Error |
|
|
Hey guys I noticed on the song list page for Supernova has a php error and is preventing the song list from being displayed. The error is
Code: |
Warning: array_multisort() [function.array-multisort]: Argument #1 is expected to be an array or a sort flag in /home/ddrfreak/www/www.ddrfreak.com/data/versions/songlist.php on line 52
|
Hope that helped!
- Dave |
|
Back to top |
|
 |
Cutriss Staff Member


Joined: 24 Jan 2002
|
1. Posted: Wed Oct 25, 2006 11:20 am Post subject: |
|
|
It's not a PHP error, so much as the list just doesn't exist yet and that's how PHP "handles" it. Nobody has punched it in yet. _________________
Sentient Mode is capable... |
|
Back to top |
|
 |
Trifthen Trick Member


Joined: 19 Nov 2003 Location: Chicago, IL |
2. Posted: Tue Nov 07, 2006 6:31 pm Post subject: |
|
|
Cutriss wrote: | It's not a PHP error, so much as the list just doesn't exist yet and that's how PHP "handles" it. Nobody has punched it in yet. |
Oh come on now... that's just blatantly untrue.
Code: | <?PHP
$songlist = get_crap_from_database();
if (empty($songlist))
{
print "YOU SUX0RZ!!1 NO SONGS 4 U!!LOLOLOL"
}
else
{
format_and_print($songlist);
}
?>
|
See? Easy as cake. 'course, whoever wrote the songlist display page probably assumed (reasonably) that the list would never come back empty. Heh. _________________
|
|
Back to top |
|
 |
|