Changeset 205 for trunk/expressoMail1_2/inc/class.db_functions.inc.php
- Timestamp:
- 03/10/08 09:18:37 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.db_functions.inc.php
r163 r205 158 158 return $stringDropDownContacts; 159 159 } 160 160 /* 161 161 function update_preferences($params){ 162 162 … … 212 212 else 213 213 return "OK!"; 214 } 215 */ 216 function update_preferences($params){ 217 $string_serial = urldecode($params['prefe_string']); 218 $string_serial = get_magic_quotes_gpc() ? $string_serial : addslashes($string_serial); 219 $query = "update phpgw_preferences set preference_value = '".$string_serial."' where preference_app = 'expressoMail'". 220 " and preference_owner = '".$this->user_id."'"; 221 222 if (!$this->db->query($query)) 223 return $this->db->error; 224 else 225 return array("success" => true); 214 226 } 215 227 function getUserByEmail($params){
Note: See TracChangeset
for help on using the changeset viewer.