mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
PHP Notice removal
This commit is contained in:
@@ -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>");
|
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']);
|
$table = key($_POST['rebuild']);
|
||||||
list($primary, $input, $output) = explode("::",$_POST['rebuild'][$table]);
|
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)
|
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']);
|
$alias = vartrue($pref[e_LAN][$plug][$k], $v['alias']);
|
||||||
// $sefurl = (!empty($alias)) ? str_replace('{alias}', $alias, $v['sef']) : $v['sef'];
|
// $sefurl = (!empty($alias)) ? str_replace('{alias}', $alias, $v['sef']) : $v['sef'];
|
||||||
$pid = $plug."|".$k;
|
$pid = $plug."|".$k;
|
||||||
|
Reference in New Issue
Block a user