summaryrefslogtreecommitdiff
path: root/modules/box.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-06-30 20:23:33 +0000
committerDries Buytaert <dries@buytaert.net>2001-06-30 20:23:33 +0000
commit87575929a5a540b7085d3376fb34548cba130bdd (patch)
treefacd2c1d316c0f7d532e8ba983f5782f0befc87a /modules/box.module
parenteacfc0425d8e6905e048f3ab934e4baa00b0abb3 (diff)
downloadbrdo-87575929a5a540b7085d3376fb34548cba130bdd.tar.gz
brdo-87575929a5a540b7085d3376fb34548cba130bdd.tar.bz2
- Introduced caching support.
Diffstat (limited to 'modules/box.module')
-rw-r--r--modules/box.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/box.module b/modules/box.module
index c34ddaf87..9d8c5bc83 100644
--- a/modules/box.module
+++ b/modules/box.module
@@ -79,7 +79,7 @@ function box_save($edit) {
db_query("UPDATE boxes SET title = '". check_input($edit[title]) ."', body = '". check_input($edit[body]) ."', info = '". check_input($edit[info]) ."', link = '". check_input($edit[link]) ."', type = '". check_input($edit[type]) ."' WHERE bid = '". check_input($edit[bid]) ."'");
}
else if ($edit[bid]) {
- db_query("DELETE FROM boxes WHERE bid = '". check_input($edit[bid]) ."'");
+ db_query("DELETE FROM boxes WHERE bid = '". check_input($edit[bid]) ."'");
}
else {
db_query("INSERT INTO boxes (title, body, info, link, type) VALUES ('". check_input($edit[title]) ."', '". check_input($edit[body]) ."', '". check_input($edit[info]) ."', '". check_input($link) ."', '". check_input($edit[type]) ."')");
@@ -132,7 +132,7 @@ function box_admin() {
// fall through:
case "Submit":
print status(box_save($edit));
- // fall through:
+ // fall through:
default:
print box_display();
}