Project

General

Profile

« Previous | Next » 

Revision 376

Added by Matthias almost 18 years ago

Fixed news modul stores empty records (#338)

View differences:

trunk/wb/modules/news/modify.php
25 25

  
26 26
// Must include code to stop this file being access directly
27 27
if(!defined('WB_PATH')) { exit("Cannot access this file directly"); }
28
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_posts  WHERE page_id = '$page_id' and section_id = '$section_id' and title=''"); 
29
$database->query("DELETE FROM ".TABLE_PREFIX."mod_news_groups  WHERE page_id = '$page_id' and section_id = '$section_id' and title=''"); 
28 30

  
29 31
?>
30 32
<table cellpadding="0" cellspacing="0" border="0" width="100%">

Also available in: Unified diff