ramiismail / dopresskit

presskit() - spend time making games, not press.
GNU General Public License v3.0
133 stars 50 forks source link

index.php and sheet.php now gracefully handles more missing elements from data.xml #27

Closed Zguy closed 6 years ago

JohannesMP commented 10 years ago

Why not just move the element variable declarations out and above the xml foreach loop? that way you don't have to check if it's set every single time, and the old count() checks will still work fine.

gritworks commented 9 years ago

index.php line 405 should be: if( count( $awards )> 0 )

instead of if( count( $awards > 0 ) )