Changeset 368 for trunk


Ignore:
Timestamp:
06/01/10 13:15:47 (11 years ago)
Author:
sander
Message:

Fix error with when not logged in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/www/app/views/layouts/default.ctp

    r367 r368  
    8484        <p id="admin-controllers"> 
    8585                <?php __('Admin:');?> 
    86                 <?php foreach ($adminControllers as $controllerName => $controllerPath): ?> 
    87                         <a href="<?php echo $controllerPath; ?>"><?php echo $controllerName; ?></a> 
    88                 <?php endforeach; ?> 
     86                <?php if (isset($adminControllers)):?> 
     87                        <?php foreach ($adminControllers as $controllerName => $controllerPath): ?> 
     88                                <a href="<?php echo $controllerPath; ?>"><?php echo $controllerName; ?></a> 
     89                        <?php endforeach; ?> 
     90                <?php endif;?> 
    8991        </p> 
    9092        <?php echo $cakeDebug; ?> 
Note: See TracChangeset for help on using the changeset viewer.