diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-11-17 15:44:21 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2001-11-17 15:44:21 +0000 |
commit | ac50e1a46f6ee908cbef6bd2373be3389cd56048 (patch) | |
tree | 019f4ebaeba541ffe96590518fa16af14f6740f7 /modules/block.module | |
parent | 0db3df1bfa32fa8f7ddf071339c3d0ffd10cf4cc (diff) | |
download | brdo-ac50e1a46f6ee908cbef6bd2373be3389cd56048.tar.gz brdo-ac50e1a46f6ee908cbef6bd2373be3389cd56048.tar.bz2 |
code-style.pl
- allow $var++ and $var-- syntax.
update.php / block.module
- cleaned up coding style, and trailing spaces.
Diffstat (limited to 'modules/block.module')
-rw-r--r-- | modules/block.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/block.module b/modules/block.module index 7d25fdff1..819c60231 100644 --- a/modules/block.module +++ b/modules/block.module @@ -26,7 +26,7 @@ function block_link($type) { function block_admin_save($edit) { foreach ($edit as $key=>$value) { - db_query("UPDATE blocks SET region = '". check_input($value[region]) ."', status = '". check_input($value[status]) ."', path = '". check_input($value[path]) ."', weight = '". check_input($value[weight]) ."' WHERE name = '". check_input($key) ."'"); + db_query("UPDATE blocks SET region = '". check_input($value["region"]) ."', status = '". check_input($value["status"]) ."', path = '". check_input($value["path"]) ."', weight = '". check_input($value["weight"]) ."' WHERE name = '". check_input($key) ."'"); } } |