From ac50e1a46f6ee908cbef6bd2373be3389cd56048 Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sat, 17 Nov 2001 15:44:21 +0000 Subject: code-style.pl - allow $var++ and $var-- syntax. update.php / block.module - cleaned up coding style, and trailing spaces. --- modules/block.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/block.module') 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) ."'"); } } -- cgit v1.2.3