Index: login_destination.module
===================================================================
--- login_destination.module	(revision 219)
+++ login_destination.module	(revision 225)
@@ -144,7 +144,7 @@
  * @return bool TRUE - apply redirect, FALSE - not to apply redirect.
  */
 function login_destination_apply_redirect() {
-  if ($_GET['destination'] != $_GET['q'] && variable_get('ld_destination', TRUE)) {
+  if ((!isset($_GET['destination']) || $_GET['destination'] != $_GET['q']) && variable_get('ld_destination', TRUE)) {
     return FALSE;
   }
 
