libraries/relation.lib.php3:144,190

- Cleaned up is_array() to isset(0 && is_array()
This commit is contained in:
Robin Johnson
2002-06-18 17:13:48 +00:00
parent f405c2b747
commit c246cedc00

View File

@@ -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;