Changeset 787


Ignore:
Timestamp:
03/16/07 10:59:57 (13 years ago)
Author:
ray
Message:

Ticket #984 ExtendedFileManager? produces php warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/ExtendedFileManager/images.php

    r681 r787  
    2727 
    2828//process paste 
    29 if (isset($_GET['paste'])) 
    30         $pasteStatus = $manager->processPaste(); 
    31  
    32 if ($manager->deleteFiles()) 
    33     $refreshFile = true; 
     29$pasteStatus = (isset($_GET['paste'])) ?        $manager->processPaste() : false; 
     30 
     31$refreshFile = ($manager->deleteFiles()) ? true : false; 
    3432 
    3533$refreshDir = false; 
     
    5149} 
    5250 
    53  
    54 $afruViewType=""; 
    55 if(isset($_REQUEST['viewtype'])) 
    56 { 
    57         $afruViewType=$_REQUEST['viewtype']; 
    58 } 
     51$afruViewType = (isset($_REQUEST['viewtype'])) ? $afruViewType=$_REQUEST['viewtype'] : ''; 
     52 
    5953if($afruViewType!="thumbview" && $afruViewType!="listview") 
    60  
    61 $afruViewType=$IMConfig['view_type']; 
    62  
     54{ 
     55  $afruViewType=$IMConfig['view_type']; 
     56} 
    6357//get the list of files and directories 
    6458$list = $manager->getFiles($relative); 
     
    139133                    <a href="#" title="Cut" onclick="copyFile('<?php echo rawurlencode($entry);?>','move'); return false;"><img src="<?php print $IMConfig['base_url'];?>img/edit_cut.gif" height="15" width="15" alt="Cut" /></a> 
    140134                     <a href="#" title="Copy" onclick="copyFile('<?php echo rawurlencode($entry);?>','copy'); return false;"><img src="<?php print $IMConfig['base_url'];?>img/edit_copy.gif" height="15" width="15" alt="Copy" /></a> 
    141                     <?php $thisFileNameLength -= 6; }  ?> 
     135                    <?php }  ?> 
    142136                  </td> 
    143137                </tr> 
Note: See TracChangeset for help on using the changeset viewer.