~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/php/phpBB3/includes/session.php

  • Committer: dcoles
  • Date: 2008-02-19 23:17:58 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:516
forum: Fixed minor SQL syntax error that upset PostGreSQL

Show diffs side-by-side

added added

removed removed

Lines of Context:
1986
1986
        
1987
1987
                        // Check if the user exists in the database
1988
1988
                        $sql = 'SELECT user_id
1989
 
                                        FROM ' . USERS_TABLE . '
1990
 
                                        WHERE username = "' . $db->sql_escape($ivle_uid) . '";';
 
1989
                    FROM ' . USERS_TABLE . "
 
1990
                    WHERE username = '" . $db->sql_escape($ivle_uid) . "';";
1991
1991
                        $result = $db->sql_query($sql);
1992
1992
                        $row = $db->sql_fetchrow($result);
1993
1993
                        $user_id = $row['user_id'];
2052
2052
                if ($group) {
2053
2053
                        // Find the group_id
2054
2054
                        $sql = 'SELECT group_id
2055
 
                                        FROM ' . GROUPS_TABLE . "
2056
 
                                        WHERE group_name = '" . $db->sql_escape($group) . "'
 
2055
                    FROM ' . GROUPS_TABLE . "
 
2056
                    WHERE group_name = '" . $db->sql_escape($group) . "'
2057
2057
                                        AND group_type = " . GROUP_SPECIAL;
2058
2058
                        $result = $db->sql_query($sql);
2059
2059
                        $row = $db->sql_fetchrow($result);