Ignore:
Timestamp:
Nov 10, 2009, 4:04:07 PM (14 years ago)
Author:
LucMorizur
Message:

[Event Cats] Improve configuration parameters management

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/admin/evntcats_admin.php

    r4219 r4239  
    3838if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
    3939
    40 global $template, $conf, $lang, $test1, $prefixeTable, $ec_conf, $page, $ec_debug,
     40global $template, $conf, $lang, $prefixeTable, $ec_conf, $page, $ec_debug,
    4141 $ec_lists,   // array of following arrays :
    4242              //   $ec_lists['ec_table'] :
     
    6868  EVNTCATS_PATH.'admin/evntcats_theme.css">'
    6969);
    70 $ec_debug = array();
     70if (!isset($ec_debug)) $ec_debug = array();
    7171
    7272if (
     
    7575) change_ec_conf('auto_code_dg_nb', $_POST['ec_in_up_auto_code_length']);
    7676
    77 $ec_howto = (read_ec_conf('howto') == '0');
    78 if ($ec_howto) change_ec_conf('howto', '1');
     77if ($ec_howto = (read_ec_conf('howto') == '0')) change_ec_conf('howto', '1');
    7978
    8079build_ec_lists(); // in evntcats_main_funcs.php
Note: See TracChangeset for help on using the changeset viewer.