From c246cedc0085060c67e0feefd7b7ea8dfb6542d2 Mon Sep 17 00:00:00 2001 From: Robin Johnson Date: Tue, 18 Jun 2002 17:13:48 +0000 Subject: [PATCH] libraries/relation.lib.php3:144,190 - Cleaned up is_array() to isset(0 && is_array() --- libraries/relation.lib.php3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/relation.lib.php3 b/libraries/relation.lib.php3 index c9dd7f981..af9b75deb 100644 --- a/libraries/relation.lib.php3 +++ b/libraries/relation.lib.php3 @@ -141,7 +141,7 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){ $foreign[$field]['foreign_field'] = $relrow['foreign_field']; $i++; } // end while - if(is_array($foreign)) { + if( isset($foreign) && is_array($foreign) ) { return $foreign; } else { return FALSE; @@ -187,7 +187,7 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){ $comment[$col] = $row['comment']; } // end while - if(is_array($comment)) { + if( isset($comment) && is_array($comment) ) { return $comment; } else { return FALSE;