Bail if no themes found. see #8652

git-svn-id: http://svn.automattic.com/wordpress/trunk@10675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-03-01 19:38:42 +00:00
parent 5c402dd266
commit cc26b0347f
1 changed files with 7 additions and 0 deletions

View File

@ -381,10 +381,17 @@ function display_themes($themes, $page = 1, $totalpages = 1) {
echo "\t\t<div class='tablenav-pages'>$page_links</div>";
?> <br class="clear" />
</div>
<?php
if ( empty($themes) ) {
_e('No themes found');
return;
}
?>
<table id="availablethemes" cellspacing="0" cellpadding="0">
<?php
$in_column = 0;
$rows = ceil(count($themes) / 3);
$table = array();
$i = 0;
for ( $row = 1; $row <= $rows; $row++ ) {
for ( $col = 1; $col <= 3; $col++ ) {