--- /Users/robertdouglass/Downloads/simplesamlphp_auth/simplesamlphp_auth.install	2011-10-10 19:27:32.000000000 +0200
+++ simplesamlphp_auth-HEAD-f69f5e3/simplesamlphp_auth.install	2011-10-15 15:24:42.000000000 +0200
@@ -13,7 +13,7 @@
   $abc = 'test';
 
   // Necessary userprotect settings.
-  $query1 = db_result(db_query('SELECT perm FROM {permission} WHERE rid = 2'));
+  $query1 = db_query('SELECT perm FROM {permission} WHERE rid = 2')->fetchField();
 
   if ($query1) {
     $new_perms = str_replace(', change own password', '', $query1);
@@ -38,9 +38,6 @@
  * Implements hook_uninstall().
  */
 function simplesamlphp_auth_uninstall() {
-  // Show Login block by default.
-  $query1 = db_query('UPDATE {block} SET status="1" WHERE module="user" AND delta="0"');
-
   // Restore the original user registration directive.
   $original = variable_get('simplesamlphp_auth_user_register_original', 1);
   variable_set('user_register', $original);
