1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-11 07:59:44 +01:00

PHP Notice removal

This commit is contained in:
Cameron 2020-01-27 12:17:34 -08:00
parent d966705c3b
commit 60d64c5398

View File

@ -119,7 +119,7 @@ class eurl_admin_ui extends e_admin_controller_ui
e107::getMessage()->addInfo("Mod-rewrite is disabled. To enable, please add the following line to your <b>e107_config.php</b> file:<br /><pre>define('e_MOD_REWRITE',true);</pre>");
}
if(is_array($_POST['rebuild']))
if(isset($_POST['rebuild']) && is_array($_POST['rebuild']))
{
$table = key($_POST['rebuild']);
list($primary, $input, $output) = explode("::",$_POST['rebuild'][$table]);
@ -292,6 +292,21 @@ class eurl_admin_ui extends e_admin_controller_ui
foreach($val as $k=>$v)
{
if(!isset($v['alias']))
{
$v['alias'] = '';
}
if(!isset($v['regex']))
{
$v['regex'] = '';
}
if(!isset($v['redirect']))
{
$v['redirect'] = '';
}
$alias = vartrue($pref[e_LAN][$plug][$k], $v['alias']);
// $sefurl = (!empty($alias)) ? str_replace('{alias}', $alias, $v['sef']) : $v['sef'];
$pid = $plug."|".$k;