Changeset 381

Show
Ignore:
Timestamp:
07/07/09 13:12:08 (5 months ago)
Author:
bettse
Message:

chagned insert from using set format to values format

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • elgg/branches/elgg1.5/engine/lib/river2.php

    r326 r381  
    5050                                 
    5151                        // Attempt to save river item; return success status 
    52                                 return insert_data("insert into {$CONFIG->dbprefix}river " . 
    53                                                                                 " set type = '{$type}', " . 
    54                                                                                 " subtype = '{$subtype}', " . 
    55                                                                                 " action_type = '{$action_type}', " . 
    56                                                                                 " access_id = {$access_id}, " . 
    57                                                                                 " view = '{$view}', " . 
    58                                                                                 " subject_guid = {$subject_guid}, " . 
    59                                                                                 " object_guid = {$object_guid}, " . 
    60                                                                                 " posted = {$posted} "); 
    61                                                                  
     52                return insert_data("insert into {$CONFIG->dbprefix}river " . 
     53                       "(type, subtype, action_type, access_id, view, subject_guid, object_guid, posted) VALUES " . 
     54                       "('{$type}', '{$subtype}', '{$action_type}', '{$access_id}', '{$view}', '{$subject_guid}', '{$object_guid}', '{$posted}')");                                                              
    6255                } 
    6356