[imc-sf-coders] CVS update of
sf-active/sf-active/shared/classes/webcast (1 file)
Bart M
pseudopunk at codecoop.org
Thu Dec 29 11:29:26 PST 2005
Date: Thursday, December 29, 2005 @ 20:29:26
Author: pseudopunk
Path: /cvsroot/sf-active/sf-active/sf-active/shared/classes/webcast
Modified: webcast_comment_class.inc
when inserting a comment, update numcomment of the parent_id (closes bug 137)
Index: sf-active/sf-active/shared/classes/webcast/webcast_comment_class.inc
diff -u sf-active/sf-active/shared/classes/webcast/webcast_comment_class.inc:1.6 sf-active/sf-active/shared/classes/webcast/webcast_comment_class.inc:1.7
--- sf-active/sf-active/shared/classes/webcast/webcast_comment_class.inc:1.6 Tue Aug 23 21:59:18 2005
+++ sf-active/sf-active/shared/classes/webcast/webcast_comment_class.inc Thu Dec 29 20:29:26 2005
@@ -10,7 +10,7 @@
* @author ryan <ryan at indymedia.org>
* @filesource
*
- * $Id: webcast_comment_class.inc,v 1.6 2005/08/23 19:59:18 pseudopunk Exp $
+ * $Id: webcast_comment_class.inc,v 1.7 2005/12/29 19:29:26 pseudopunk Exp $
*
*/
@@ -72,6 +72,10 @@
// execute the query
$this->_id = $db->execute_statement_return_autokey($query);
+
+ // update numcomment of the parent_id...
+ $query = "update webcast set numcomment= numcomment +1 where id = ".$this->_parent_id;
+ $db->query($query);
//$this->set_paths();
/* if ($this->article["validate"] = 1)
More information about the imc-sf-coders
mailing list