Skip to content

Commit

Permalink
More error output cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jul 1, 2010
1 parent 60e7dc8 commit 2915681
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion database.php
Expand Up @@ -9,7 +9,7 @@

function write_error($err)
{
print("\n\n$err\n\n");
//print("\n\n$err\n\n");
} // write_error

function write_debug($err)
Expand Down
11 changes: 3 additions & 8 deletions steamtags.php
@@ -1,10 +1,5 @@
<?php

function write_error($err)
{
echo "\n\n<p><font color='#FF0000'>\n\nERROR: $err\n\n</font></p>\n\n";
} // write_error

function steam_base_profile_url($user)
{
$profdir = 'profiles';
Expand Down Expand Up @@ -43,13 +38,13 @@ function load_steam_profile($user)
$sxe = url_to_simplexml(steam_profile_url($user));
if ($sxe === false)
{
write_error("Couldn't load user profile from Steam Community");
//write_error("Couldn't load user profile from Steam Community");
return NULL;
} // if

if ($sxe->privacyState != 'public')
{
write_error("This user's profile is marked private");
//write_error("This user's profile is marked private");
return NULL;
} // if

Expand Down Expand Up @@ -89,7 +84,7 @@ function load_steam_profile($user)
$sxe = url_to_simplexml(steam_gamelist_url($user));
if ($sxe === false)
{
write_error("Couldn't load user gamelist from Steam Community");
//write_error("Couldn't load user gamelist from Steam Community");
return NULL;
} // if

Expand Down

0 comments on commit 2915681

Please sign in to comment.