Fix E_NOTICE on customfooter and ticket plugins

ofaj
Angel Fernando Quiroz Campos 10 years ago
parent aa6d87734b
commit e9d50ad9d0
  1. 2
      plugin/customfooter/plugin.php
  2. 4
      plugin/ticket/config.php

@ -36,6 +36,8 @@ $form = new FormValidator('customfooter_form');
$plugininstance = CustomFooterPlugin::create();
$config = api_get_settings_params(array('subkey = ? ' => 'customfooter', ' AND category = ? ' => 'Plugins'));
$form_settings = [];
foreach ($config as $fooid => $configrecord) {
$canonic = preg_replace('/^customfooter_/', '', $configrecord['variable']);
if (in_array($canonic, array('footer_left', 'footer_right'))){

@ -40,5 +40,5 @@ define('CAT_ANNU', 'ANN');
require_once __DIR__ . '/../../main/inc/global.inc.php';
require_once api_get_path(PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket_plugin.class.php';
require_once api_get_path(PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket.class.php';
require_once api_get_path(SYS_PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket_plugin.class.php';
require_once api_get_path(SYS_PLUGIN_PATH) . PLUGIN_NAME . '/src/ticket.class.php';

Loading…
Cancel
Save