mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
get_user_data() performance fix
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/class2.php,v $
|
||||
| $Revision: 1.29 $
|
||||
| $Date: 2007-11-09 05:50:50 $
|
||||
| $Revision: 1.30 $
|
||||
| $Date: 2007-11-09 05:55:45 $
|
||||
| $Author: streaky $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@@ -1003,11 +1003,11 @@ function get_user_data($uid, $extra = "")
|
||||
$qry = "
|
||||
SELECT u.*, ue.* FROM #user AS u
|
||||
LEFT JOIN #user_extended AS ue ON ue.user_extended_id = u.user_id
|
||||
WHERE u.user_id='{$uid}' {$extra}
|
||||
WHERE u.user_id = {$uid} {$extra}
|
||||
";
|
||||
if (!$sql->db_Select_gen($qry))
|
||||
{
|
||||
$qry = "SELECT * FROM #user AS u WHERE u.user_id='{$uid}' {$extra}";
|
||||
$qry = "SELECT * FROM #user AS u WHERE u.user_id = {$uid} {$extra}";
|
||||
if(!$sql->db_Select_gen($qry))
|
||||
{
|
||||
return FALSE;
|
||||
|
Reference in New Issue
Block a user