Changeset 11160 for branches/2.2/include
- Timestamp:
- Jun 1, 2011, 12:14:48 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/include/functions.inc.php
r9820 r11160 1023 1023 { 1024 1024 $query = ' 1025 DELETE 1025 SELECT 1026 param, 1027 value 1026 1028 FROM '.CONFIG_TABLE.' 1027 1029 WHERE param = \''.$param.'\' 1028 1030 ;'; 1029 pwg_query($query); 1030 1031 $query = ' 1031 $params = array_from_query($query, 'param'); 1032 1033 if (count($params) == 0) 1034 { 1035 $query = ' 1032 1036 INSERT 1033 1037 INTO '.CONFIG_TABLE.' … … 1035 1039 VALUES(\''.$param.'\', \''.$value.'\') 1036 1040 ;'; 1037 pwg_query($query); 1041 pwg_query($query); 1042 } 1043 else 1044 { 1045 $query = ' 1046 UPDATE '.CONFIG_TABLE.' 1047 SET value = \''.$value.'\' 1048 WHERE param = \''.$param.'\' 1049 ;'; 1050 pwg_query($query); 1051 } 1038 1052 } 1039 1053
Note: See TracChangeset
for help on using the changeset viewer.