diff -urN includesold\bootstrap.inc includes\bootstrap.inc --- includesold\bootstrap.inc Fri Sep 09 21:24:34 2005 +++ includes\bootstrap.inc Fri Sep 09 21:49:46 2005 @@ -626,7 +626,7 @@ $_SESSION['messages'][$type][] = $message; } - return ($_SESSION['messages']) ; + return isset ($_SESSION['messages']) ? $_SESSION['messages'] : NULL ; } /** @@ -637,6 +637,7 @@ function drupal_get_messages() { $messages = drupal_set_message(); $GLOBALS['_SESSION']['messages'] = NULL ; + unset ($GLOBALS['_SESSION']['messages']) ; $GLOBALS['_SESSION']['messages'] = array(); return $messages; } diff -urN includesold\common.inc includes\common.inc --- includesold\common.inc Fri Sep 09 21:25:39 2005 +++ includes\common.inc Fri Sep 09 21:49:59 2005 @@ -166,10 +166,10 @@ * @see drupal_get_destination() */ function drupal_goto($path = '', $query = NULL, $fragment = NULL) { - if ($_REQUEST['destination']) + if (isset($_REQUEST['destination']) && $_REQUEST['destination']) { extract(parse_url($_REQUEST['destination'])); } - else if ($_REQUEST['edit']['destination']) { + else if (isset($_REQUEST['edit']) && isset($_REQUEST['edit']['destination']) && $_REQUEST['edit']['destination']) { extract(parse_url($_REQUEST['edit']['destination'])); } diff -urN includesold\pager.inc includes\pager.inc --- includesold\pager.inc Fri Sep 09 21:26:21 2005 +++ includes\pager.inc Fri Sep 09 21:50:15 2005 @@ -50,14 +50,15 @@ */ function pager_query($query, $limit = 10, $element = 0, $count_query = NULL) { global $pager_from_array, $pager_total; - $from = $_GET['from'] ; + $from = isset($_GET['from']) ? $_GET['from'] : '' ; // Substitute in query arguments. $args = func_get_args(); $args = array_slice($args, 4); // Alternative syntax for '...' - if (is_array($args[0])) { - $args = $args[0]; + if (isset ($args[0])) + if (is_array($args[0])) { + $args = $args[0]; } // Construct a count query if none was given.