Changeset 1308
- Timestamp:
- 08/11/09 17:07:53 (15 years ago)
- Location:
- trunk/expressoMail1_2
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.db_functions.inc.php
r1186 r1308 278 278 // Atualiza um email nos contatos dinamicos. 279 279 if(!$this->db->update('phpgw_expressomail_contacts ','data=\''.serialize($contacts).'\'', 280 281 282 { 283 284 } 285 280 'id_owner ='.$this -> user_id, 281 __LINE__,__FILE__)) 282 { 283 return $this->db->Error; 284 } 285 return $contacts; 286 286 } 287 function update_preferences($params){ 288 $string_serial = urldecode($params['prefe_string']); 289 $string_serial = get_magic_quotes_gpc() ? $string_serial : addslashes($string_serial); 290 $query = "update phpgw_preferences set preference_value = '".$string_serial."' where preference_app = 'expressoMail'". 291 " and preference_owner = '".$this->user_id."'"; 292 293 if (!$this->db->query($query)) 294 return $this->db->error; 295 else 296 return array("success" => true); 297 } 287 298 288 299 function insert_contact($contact)
Note: See TracChangeset
for help on using the changeset viewer.