Skip to content

Commit

Permalink
fix bug Notice in Structure page of views
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Sep 28, 2015
1 parent 50d1c4f commit f0d678a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ phpMyAdmin - ChangeLog
- issue #11496 Incorrect definition for getTablesWhenOpen()
- issue #11500 Error when creating new user on MariaDB 10.0.21
- issue #11505 Notice on htmlspecialchars()
- issue Notice in Structure page of views

4.5.0.2 (2015-09-25)
- issue #11497 Incorrect indexes when exporting
Expand Down
2 changes: 1 addition & 1 deletion templates/table/structure/display_structure.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
<?php
$partition_names = PMA_Partition::getPartitionNames($db, $table);
// detect partitioning
if (! is_null($partition_names[0])) {
if (! empty($partition_names) && ! is_null($partition_names[0])) {

$partitions = PMA_Partition::getPartitions($db, $table);
$firstPartition = $partitions[0];
Expand Down

0 comments on commit f0d678a

Please sign in to comment.