Changeset 1205

Show
Ignore:
Timestamp:
08/07/2008 08:04:50 AM (2 years ago)
Author:
NilsLindenberg
Message:

refs #496: fixing notice in history-handler

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/handlers/history/history.php

    r1126 r1205  
    4242echo '<div class="page">'."\n"; 
    4343$start = (int) $this->GetSafeVar('start', 'get');       // @@@ accept only positive value here 
     44 
    4445if ($this->HasAccess("read")) { 
    4546        // load revisions for this page 
    4647        if ($pages = $this->LoadRevisions($this->tag, $start)) 
    4748        { 
     49                $note = ''; 
    4850                $output = ""; 
    4951                $additional_output = ''; 
     
    7577                                        $deleted = array_diff($bodyB, $bodyA); 
    7678 
    77                                         if (strlen($pageA['note']) == 0) 
    78                                         { 
    79                                                 $note = ''; 
    80                                         } 
    81                                         else 
     79                                        if (strlen($pageA['note']) > 0) 
    8280                                        { 
    8381                                                $note = '['.$this->htmlspecialchars_ent($pageA['note']).']';