[geeklog-cvs] geeklog-1.3/public_html/admin poll.php,1.41,1.42
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Fri Dec 10 04:56:36 EST 2004
Update of /var/cvs/geeklog-1.3/public_html/admin
In directory www:/tmp/cvs-serv29197/public_html/admin
Modified Files:
poll.php
Log Message:
When deleting a poll, also delete any comments to that poll.
Index: poll.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/poll.php,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** poll.php 29 Sep 2004 17:43:43 -0000 1.41
--- poll.php 10 Dec 2004 09:56:34 -0000 1.42
***************
*** 427,430 ****
--- 427,431 ----
DB_delete ($_TABLES['pollquestions'], 'qid', $qid);
DB_delete ($_TABLES['pollanswers'], 'qid', $qid);
+ DB_query ("DELETE FROM {$_TABLES['comments']} WHERE sid = '$qid' AND type = 'poll'");
return COM_refresh ($_CONF['site_admin_url'] . '/poll.php?msg=20');
More information about the geeklog-cvs
mailing list