Changeset 368

Show
Ignore:
Timestamp:
06/29/09 08:55:34 (5 months ago)
Author:
bettse
Message:

correct insert statement syntax in add_user_to_access_collection()

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • elgg/branches/elgg1.5-sql-fixes/engine/lib/access.php

    r364 r368  
    444444                                global $CONFIG; 
    445445                                try { 
    446                                         insert_data("insert into {$CONFIG->dbprefix}access_collection_membership set access_collection_id = {$collection_id}, user_guid = {$user_guid}"); 
     446                                        insert_data("insert into {$CONFIG->dbprefix}access_collection_membership (access_collection_id, user_guid) VALUES ($collection_id, $user_guid)"); 
    447447                                } catch (DatabaseException $e) {} 
    448448                                return true;