Changeset 776

Show
Ignore:
Timestamp:
01/15/07 13:59:02 (2 years ago)
Author:
Neal
Message:

Removed extra error when a guest tries posting as Guest.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/upload/post.php

    r282 r776  
    129129 
    130130                // Check that the username (or a too similar username) is not already registered 
    131                 $result = $db->query('SELECT username FROM '.$db->prefix.'users WHERE username=\''.$db->escape($username).'\' OR username=\''.$db->escape(preg_replace('/[^\w]/', '', $username)).'\'') or error('Unable to fetch user info', __FILE__, __LINE__, $db->error()); 
     131                $result = $db->query('SELECT username FROM '.$db->prefix.'users WHERE (username=\''.$db->escape($username).'\' OR username=\''.$db->escape(preg_replace('/[^\w]/', '', $username)).'\') AND id>1') or error('Unable to fetch user info', __FILE__, __LINE__, $db->error()); 
    132132                if ($db->num_rows($result)) 
    133133                {