Skip to content

Commit

Permalink
Fix notice
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Delisle <marc@infomarc.info>
  • Loading branch information
lem9 committed May 20, 2014
1 parent 7937cbd commit fda0473
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/relation.lib.php
Expand Up @@ -1586,7 +1586,9 @@ function PMA_checkChildForeignReferences($db, $table, $column)
$foreigners = PMA_getForeigners($db, $table, $column);
$child_references = PMA_getChildReferences($db, $table, $column);

if (sizeof($child_references, 0) > 0 || sizeof($foreigners[$column], 0) > 0) {
if (sizeof($child_references, 0) > 0
|| (! empty($foreigners[$column]) && sizeof($foreigners[$column], 0) > 0)
) {
if (sizeof($child_references, 0) > 0) {
$column_status['isReferenced'] = true;
foreach ($child_references as $row => $columns) {
Expand Down

0 comments on commit fda0473

Please sign in to comment.