Skip to content

Commit

Permalink
Patched to compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 1, 2010
1 parent 2f3c98b commit 352c61e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions steamprofile.php
Expand Up @@ -60,8 +60,7 @@ function dump_array_as_xml($name, $a)
} // foreach
print("</tags>");
print("</game>");
);
} // foreach
} // foreach
print("</gamelist>");
print("</profile>");

Expand Down
4 changes: 4 additions & 0 deletions steamtags.php
@@ -1,5 +1,7 @@
<?php

require_once('database.php');

function steam_base_profile_url($user)
{
$profdir = 'profiles';
Expand Down Expand Up @@ -39,13 +41,15 @@ function load_profile_game_tags($profile)
$id = $profile['steamid'];
$sql = "select appid, tag from gametags where steamid=$id order by appid";
$query = do_dbquery($sql);
// !!! FIXME: check for db error here!
while ( ($row = db_fetch_array($query)) != false )
{
$game = $gamelist[$row['appid']];
if (!isset($game))
continue; // maybe it was a free weekend game they don't own now?
$game['tags'][] = $row['tag'];
} // while
return true;
} // load_profile_game_tags

function load_steam_profile($user)
Expand Down

0 comments on commit 352c61e

Please sign in to comment.