Changeset 24625


Ignore:
Timestamp:
Sep 25, 2013, 3:47:00 PM (7 years ago)
Author:
mistic100
Message:

additional config check in install/update script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/include/install.inc.php

    r24348 r24625  
    8787      conf_update_param('ContactForm_after', $conf['ContactForm_after']);
    8888     
    89       pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param IN("persoformtop", "persoformbottom") LIMIT 2;');
     89      pwg_query('DELETE FROM `'. CONFIG_TABLE .'` WHERE param IN("persoformtop", "persoformbottom");');
    9090    }
    9191   
     
    100100    conf_update_param('ContactForm', $conf['ContactForm']);
    101101  }
     102 
     103  // just in case something went wrong in a previous version
     104  if (empty($conf['ContactForm_before']))
     105  {
     106    $conf['ContactForm_before'] = null;
     107    conf_update_param('ContactForm_before', $conf['ContactForm_before']);
     108  }
     109 
     110  if (empty($conf['ContactForm_after']))
     111  {
     112    $conf['ContactForm_after'] = null;
     113    conf_update_param('ContactForm_after', $conf['ContactForm_after']);
     114  }
    102115}
    103116
Note: See TracChangeset for help on using the changeset viewer.