Ignore:
Timestamp:
Mar 5, 2011, 11:23:58 AM (13 years ago)
Author:
flop25
Message:

new system when posting checkbox
testing the auto version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/adult_content/admin/admin.php

    r9530 r9542  
    1414if (isset($_POST['option_ad_c']))
    1515{
    16         $newconf_plugin = array(
    17                 $_POST['menublock_for_guest'],
    18                 $_POST['block_on_index'],
    19         );
    20         $newconf_plugin = implode ("," , $newconf_plugin);
     16        $newconf_plugin = (isset($_POST['menublock_for_guest'])) ? 'true' : 'false';
     17        $newconf_plugin .= (isset($_POST['block_on_index'])) ? ',true' : ',false';
     18        //$newconf_plugin = implode ("," , $newconf_plugin);
    2119        $query = '
    2220                UPDATE '.CONFIG_TABLE.'
Note: See TracChangeset for help on using the changeset viewer.