--- cosign.module	2008-12-04 21:22:27.000000000 +0000
+++ cosign.module	2008-12-16 21:59:31.000000000 +0000
@@ -197,9 +197,9 @@
   $cosign_user = $_SERVER['REMOTE_USER'];
   if (!isset($cosign_user) || empty($cosign_user)) {
     cosign_disable();
-    error_handler(1, 'Could not detect your username from ' .
+    drupal_error_handler(1, 'Could not detect your username from ' .
       '$_SERVER[\'REMOTE_USER\'], cosign was not enabled<br />',
-      __FILE__, __LINE__);
+      __FILE__, __LINE__, 0);
     return FALSE;
   }
 
