[geeklog-cvs] geeklog-1.3/public_html comment.php,1.78,1.79

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Sat Oct 23 06:03:38 EDT 2004


Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv2941

Modified Files:
	comment.php 
Log Message:
Fixed comment ID in comment notification emails.


Index: comment.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/comment.php,v
retrieving revision 1.78
retrieving revision 1.79
diff -C2 -d -r1.78 -r1.79
*** comment.php	3 Oct 2004 18:39:31 -0000	1.78
--- comment.php	23 Oct 2004 10:03:36 -0000	1.79
***************
*** 354,362 ****
                      "'$sid',$uid,'$comment',now(),'$title',$pid,$rht+1,$rht+2,0,'$type','{$HTTP_SERVER_VARS['REMOTE_ADDR']}'");
          }
          DB_query('UNLOCK TABLES');
  
          if (isset ($_CONF['notification']) &&
                  in_array ('comment', $_CONF['notification'])) {
-             $cid = DB_insertId();
              sendNotification ($title, $comment, $uid,
                                $HTTP_SERVER_VARS['REMOTE_ADDR'], $type, $cid);
--- 354,362 ----
                      "'$sid',$uid,'$comment',now(),'$title',$pid,$rht+1,$rht+2,0,'$type','{$HTTP_SERVER_VARS['REMOTE_ADDR']}'");
          }
+         $cid = DB_insertId();
          DB_query('UNLOCK TABLES');
  
          if (isset ($_CONF['notification']) &&
                  in_array ('comment', $_CONF['notification'])) {
              sendNotification ($title, $comment, $uid,
                                $HTTP_SERVER_VARS['REMOTE_ADDR'], $type, $cid);




More information about the geeklog-cvs mailing list