libraries/relation.lib.php3:144,190
- Cleaned up is_array() to isset(0 && is_array()
This commit is contained in:
@@ -141,7 +141,7 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
|
|||||||
$foreign[$field]['foreign_field'] = $relrow['foreign_field'];
|
$foreign[$field]['foreign_field'] = $relrow['foreign_field'];
|
||||||
$i++;
|
$i++;
|
||||||
} // end while
|
} // end while
|
||||||
if(is_array($foreign)) {
|
if( isset($foreign) && is_array($foreign) ) {
|
||||||
return $foreign;
|
return $foreign;
|
||||||
} else {
|
} else {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@@ -187,7 +187,7 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
|
|||||||
$comment[$col] = $row['comment'];
|
$comment[$col] = $row['comment'];
|
||||||
} // end while
|
} // end while
|
||||||
|
|
||||||
if(is_array($comment)) {
|
if( isset($comment) && is_array($comment) ) {
|
||||||
return $comment;
|
return $comment;
|
||||||
} else {
|
} else {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Reference in New Issue
Block a user