[geeklog-cvs] geeklog-1.3/public_html index.php,1.67,1.68
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Fri Oct 29 07:18:43 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv13293
Modified Files:
index.php
Log Message:
Added a check for type = 'article' when deleting the comments to an auto-deletedstory.
Index: index.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/index.php,v
retrieving revision 1.67
retrieving revision 1.68
diff -C2 -d -r1.67 -r1.68
*** index.php 27 Oct 2004 23:43:44 -0000 1.67
--- index.php 29 Oct 2004 11:18:41 -0000 1.68
***************
*** 142,146 ****
COM_errorLOG("Delete Story and comments: $sid, Topic:$expiretopic, Title: $title. Expired :$expire");
STORY_deleteImages ($sid);
! DB_query("DELETE FROM {$_TABLES['comments']} WHERE sid='{$sid}'");
DB_query("DELETE FROM {$_TABLES['stories']} WHERE sid='{$sid}'");
}
--- 142,146 ----
COM_errorLOG("Delete Story and comments: $sid, Topic:$expiretopic, Title: $title. Expired :$expire");
STORY_deleteImages ($sid);
! DB_query("DELETE FROM {$_TABLES['comments']} WHERE sid='{$sid}' AND type = 'article'");
DB_query("DELETE FROM {$_TABLES['stories']} WHERE sid='{$sid}'");
}
More information about the geeklog-cvs
mailing list