Changeset 23375


Ignore:
Timestamp:
Jun 19, 2013, 10:25:22 PM (11 years ago)
Author:
mistic100
Message:

"undefined index cf_ready" when config is reloaded (main configuration page)

Location:
extensions/ContactForm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/admin/config.php

    r23208 r23375  
    55if (isset($_POST['save_config']))
    66{
     7  $was_ready = $conf['ContactForm']['cf_ready'];
     8 
    79  $conf['ContactForm'] = array(
    810    'cf_must_initialize' =>   false,
     
    1618    'cf_redirect_url' =>      ($_POST['cf_redirect_url']!='http://') ? $_POST['cf_redirect_url'] : null,
    1719    'cf_theme' =>             $_POST['cf_theme'],
    18     'cf_ready' =>             $conf['ContactForm']['cf_ready'],
    1920    );
    2021  $conf['ContactForm_before'] = $_POST['cf_before'];
     
    2425  conf_update_param('ContactForm_before', $conf['ContactForm_before']);
    2526  conf_update_param('ContactForm_after', $conf['ContactForm_after']);
     27 
     28  $conf['ContactForm']['cf_ready'] = $was_ready;
    2629 
    2730  array_push($page['infos'], l10n('Information data registered in database'));
  • extensions/ContactForm/include/functions.inc.php

    r23207 r23375  
    6666{
    6767  global $conf;
    68   if ( !$conf['ContactForm']['cf_ready'] ) return $content;
     68  if ( !@$conf['ContactForm']['cf_ready'] ) return $content;
    6969 
    7070  $search = '<a href="mailto:{$CONTACT_MAIL}?subject={\'A comment on your site\'|@translate|@escape:url}">';
  • extensions/ContactForm/main.inc.php

    r23207 r23375  
    44Version: auto
    55Description: Add a "Contact" item in the Menu block to offer a contact form to users
    6 Plugin URI: http://piwigo.org/ext/extension_view.php?eid=304
     6Plugin URI: auto
    77Author: Piwigo Team
    88Author URI: http://piwigo.org
Note: See TracChangeset for help on using the changeset viewer.