Changeset 4141 for branches/2.2.0.1/calendar/inc
- Timestamp:
- 04/26/11 11:55:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/calendar/inc/class.socalendar_sql.inc.php
r4024 r4141 967 967 $type = 'E'; 968 968 // } 969 is_array($event['attachment'])?$sattach=serialize($event['attachment']):$sattach=''; 969 if(is_array($event['attachment']) || is_array(unserialize($event['attachment']))) 970 $sattach=serialize($event['attachment']); 971 else 972 $sattach=''; 970 973 971 974 $sql = 'UPDATE phpgw_cal SET ' … … 981 984 . "description='".$this->stream->db_addslashes($event['description'])."', " 982 985 . "observations='".$this->stream->db_addslashes($event['observations'])."', " 983 . "attachment='".$this->stream->db_addslashes( serialize($event['attachment']))."', "986 . "attachment='".$this->stream->db_addslashes($sattach)."', " 984 987 . "alter_by='".$this->stream->db_addslashes($GLOBALS['phpgw_info']['user']['fullname'])."', " 985 988 . "ex_participants='".$this->stream->db_addslashes($event['ex_participants'])."', "
Note: See TracChangeset
for help on using the changeset viewer.