fixed news table name

This commit is contained in:
Philip Häusler 2011-09-14 22:59:25 +02:00
parent 2a09f904a5
commit 6a84dadf1a
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ function admin_news() {
if (count($news) > 0) { if (count($news) > 0) {
list ($news) = $news; list ($news) = $news;
sql_query("DELETE FROM `news` WHERE `ID`=" . sql_escape($id) . " LIMIT 1"); sql_query("DELETE FROM `News` WHERE `ID`=" . sql_escape($id) . " LIMIT 1");
header("Location: " . page_link_to("news")); header("Location: " . page_link_to("news"));
} else } else
return error("No News found."); return error("No News found.");