fixed news table name
This commit is contained in:
parent
2a09f904a5
commit
6a84dadf1a
|
@ -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.");
|
||||||
|
|
Loading…
Reference in New Issue