From 9fca29eae3051730b72f6144e2683cd2fe7c8d0b Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Fri, 26 May 2006 15:04:27 +0000 Subject: some tiny changes... git-svn-id: file:///svn/phpbb/trunk@5967 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_jabber.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'phpBB/includes/functions_jabber.php') diff --git a/phpBB/includes/functions_jabber.php b/phpBB/includes/functions_jabber.php index 00d7a6c5ab..9fd0386511 100644 --- a/phpBB/includes/functions_jabber.php +++ b/phpBB/includes/functions_jabber.php @@ -760,7 +760,7 @@ class jabber function get_info_from_iq_key($packet = NULL) { - return (is_array($packet)) ? $packet['iq']['#']['query'][0]['#']['key'][0]['#'] : false; + return (is_array($packet) && isset($packet['iq']['#']['query'][0]['#']['key'][0]['#'])) ? $packet['iq']['#']['query'][0]['#']['key'][0]['#'] : false; } function get_info_from_iq_error($packet = NULL) @@ -1020,6 +1020,8 @@ class make_xml extends jabber return $text; } + + return false; } function _preg_grep_keys($pattern, $array) -- cgit v1.2.1