Changeset 26359 for extensions
- Timestamp:
- Dec 30, 2013, 4:50:11 PM (10 years ago)
- Location:
- extensions/meta
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/meta/admin/admin.php
r24449 r26359 84 84 85 85 //edit meta 86 if (isset($_POST['submitchoixmeta']) and is_numeric($_POST['metalist']) and (!$_POST['metalist'])==0 and !is_adviser())86 if (isset($_POST['submitchoixmeta']) and is_numeric($_POST['metalist']) and (!$_POST['metalist'])==0) 87 87 { 88 88 $lire=$_POST['metalist']; -
extensions/meta/maintain.inc.php
r24393 r26359 21 21 $result = pwg_query($query); 22 22 23 if ( empty($conf['contactmeta']))23 if (!isset($conf['contactmeta'])) 24 24 { 25 $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("contactmeta",",","contactmeta");'; 26 pwg_query($query); 25 conf_update_param('contactmeta', ''); 27 26 } 28 27 … … 202 201 if (empty($conf['contactmeta'])) 203 202 { 204 $query = 'INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) VALUES ("contactmeta",",","contactmeta");'; 205 pwg_query($query); 203 conf_update_param('contactmeta', ''); 206 204 } 207 205 … … 241 239 pwg_query($q); 242 240 243 $q = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param="contactmeta" LIMIT 1;'; 244 pwg_query($q); 241 conf_delete_param('contactmeta'); 245 242 246 243 $q = 'DROP TABLE ' . $prefixeTable . 'meta_cat;';
Note: See TracChangeset
for help on using the changeset viewer.