1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 11:20:25 +02:00

Bugtracker #4595 - put comments in order when moderating

This commit is contained in:
e107steved
2008-11-23 21:12:05 +00:00
parent 789511633a
commit 688a3e56ad

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_admin/modcomment.php,v $ | $Source: /cvs_backup/e107_0.8/e107_admin/modcomment.php,v $
| $Revision: 1.4 $ | $Revision: 1.5 $
| $Date: 2008-11-14 06:01:06 $ | $Date: 2008-11-23 21:11:52 $
| $Author: e107coders $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
require_once("../class2.php"); require_once("../class2.php");
@@ -93,9 +93,12 @@ if ($editid)
require_once("footer.php"); exit; require_once("footer.php"); exit;
} }
if (!$sql->db_Select("comments", "*", "(comment_type='".$type."' OR comment_type='".$table."') AND comment_item_id=$id")) { if (!$sql->db_Select("comments", "*", "(comment_type='".$type."' OR comment_type='".$table."') AND comment_item_id={$id} ORDER BY `comment_datestamp` "))
{
$text .= "<tr><td class='forumheader3' style='text-align:center'>".MDCLAN_2.".</td></tr>"; $text .= "<tr><td class='forumheader3' style='text-align:center'>".MDCLAN_2.".</td></tr>";
} else { }
else
{
$con = new convert; $con = new convert;
$commentArray = $sql -> db_getList(); $commentArray = $sql -> db_getList();