mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 20:57:26 +02:00
Bugtracker #4885 - only show info in debug mode
This commit is contained in:
14
comment.php
14
comment.php
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/comment.php,v $
|
| $Source: /cvs_backup/e107_0.8/comment.php,v $
|
||||||
| $Revision: 1.14 $
|
| $Revision: 1.15 $
|
||||||
| $Date: 2010-01-09 12:06:09 $
|
| $Date: 2010-01-15 21:10:23 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
/**
|
/**
|
||||||
* @package e107
|
* @package e107
|
||||||
* @subpackage user
|
* @subpackage user
|
||||||
* @version $Id: comment.php,v 1.14 2010-01-09 12:06:09 e107steved Exp $;
|
* @version $Id: comment.php,v 1.15 2010-01-15 21:10:23 e107steved Exp $;
|
||||||
*
|
*
|
||||||
* Display comments
|
* Display comments
|
||||||
*/
|
*/
|
||||||
@@ -352,11 +352,19 @@ elseif ($action == 'comment')
|
|||||||
else
|
else
|
||||||
{ // Error - emit some debug code
|
{ // Error - emit some debug code
|
||||||
require_once(HEADERF);
|
require_once(HEADERF);
|
||||||
|
if (E107_DEBUG_LEVEL)
|
||||||
|
{
|
||||||
echo "Comment error: {$table} Field: {$e_comment['db_id']} ID {$id} Title: {$e_comment['db_title']}<br />";
|
echo "Comment error: {$table} Field: {$e_comment['db_id']} ID {$id} Title: {$e_comment['db_title']}<br />";
|
||||||
echo "<pre>";
|
echo "<pre>";
|
||||||
var_dump($e_comment);
|
var_dump($e_comment);
|
||||||
echo "</pre>";
|
echo "</pre>";
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
header('location:'.e_BASE.'index.php');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user