Plugin Directory

Changeset 519559


Ignore:
Timestamp:
03/15/2012 08:32:59 PM (14 years ago)
Author:
Albert Bertilsson
Message:

Display nice message when single item is missing, instead of empty view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • database-peek/trunk/database-peek.php

    r519552 r519559  
    341341            <?php echo "$tid = $row"; ?>
    342342            </h3>
     343            <?php
     344            if (count($rows) == 0) :
     345                echo _("$tid = $row could not be found!");
     346                echo '<br>';
     347            else:
     348            ?>
    343349            <table class="widefat">
    344350            <thead><tr>
     
    368374            </tbody></table>
    369375            <?php
     376            endif;
    370377           
    371378            foreach ($this->wp_sitetables_fks as $key => $fks) {
Note: See TracChangeset for help on using the changeset viewer.