Closed emiliobool closed 8 years ago
so...
not only this query is called from a template, but it queries all trades just to take mysql_num_rows, instead of just using count(*)
<!-- PHP -->
$query = mysql_query("SELECT count(*) FROM user_trades WHERE trade_author = " . $userdata['user_id'] . " OR trade_recipient = " . $userdata['user_id']);
echo mysql_num_rows($query);
<!-- ENDPHP -->
yes, this is real life.
this should be fixed on dev now
this is an error that has been in there since the beginning and I've been avoiding it, but now that we keep track of logs we need to take care of this