Changeset 84 in svn for branches/1.0/admin/xcache.tpl.php


Ignore:
Timestamp:
2006-06-18T01:29:08Z (9 years ago)
Author:
Xuefer
Message:

handle without inodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/admin/xcache.tpl.php

    r60 r84  
    164164            <th><a href="javascript:" onclick="resort(this); return false">SrcSize</a></th>
    165165            <th><a href="javascript:" onclick="resort(this); return false">Modify</a></th>
     166            <?php if ($haveinode) { ?>
    166167            <th><a href="javascript:" onclick="resort(this); return false">device</a></th>
    167168            <th><a href="javascript:" onclick="resort(this); return false">inode</a></th>
     169            <?php } ?>
    168170            <?php } ?>
    169171            <th><a href="javascript:" onclick="resort(this); return false">Access</a></th>
     
    203205                <td int="{$entry['sourcesize']}">{$sourcesize}</td>
    204206                <td int="{$entry['mtime']}">{$mtime}</td>
    205                 <td int="{$entry['device']}">{$entry['device']}</td>
    206                 <td int="{$entry['inode']}">{$entry['inode']}</td>
    207 ENTRY;
     207ENTRY;
     208                if (isset($entry['inode'])) {
     209                    echo <<<ENTRY
     210                    <td int="{$entry['device']}">{$entry['device']}</td>
     211                    <td int="{$entry['inode']}">{$entry['inode']}</td>
     212ENTRY;
     213                }
    208214            }
    209215            echo <<<ENTRY
Note: See TracChangeset for help on using the changeset viewer.