1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 17:44:37 +02:00

Removal of PHP Notices and SEF URL debugging improvements.

This commit is contained in:
Cameron
2017-09-23 12:52:23 -07:00
parent 0fe0bf57bf
commit 9606105e24
5 changed files with 49 additions and 13 deletions

View File

@@ -1149,7 +1149,8 @@ class comment
}
$from = 0;
$modcomment .= $this->nextprev($table,$id,$from);
$modcomment .= "</div>";
}
@@ -1175,6 +1176,7 @@ class comment
}
$search = array("{MODERATE}","{COMMENTS}","{COMMENTFORM}","{COMMENTNAV}");
$pagination = '';
$replace = array($modcomment,$text,$comment,$pagination);
$TEMPL = str_replace($search,$replace,$this->template['layout']);
@@ -1410,7 +1412,7 @@ class comment
{
unset($e_comment, $key);
include_once (e_PLUGIN.$file."/e_comment.php");
if ($e_comment && is_array($e_comment))
if (!empty($e_comment) && is_array($e_comment))
{
$key = $e_comment['eplug_comment_ids'];
if (isset($key) && $key != '')
@@ -1421,9 +1423,10 @@ class comment
else
{
//convert old method variables into the same array method
$key = $e_plug_table;
if (isset($key) && $key != '')
if (isset($e_plug_table) && $e_plug_table != '')
{
$key = $e_plug_table;
$e_comment['eplug_comment_ids'] = $e_plug_table;
$e_comment['plugin_name'] = $plugin_name;
$e_comment['plugin_path'] = $plugin_path;