Changeset 45

Show
Ignore:
Timestamp:
11/03/06 02:54:26 (14 years ago)
Author:
andrewgunn
Message:

Fixed: The field is 'ID' (all caps) in the database not 'id' (no caps). This caused the "Delete Comment" link to not include a comment ID, making comments hard to delete. We might want to do something about that, since all other DB field names are lowercase.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/comments.php

    r44 r45  
    7676        if ($page->isAdmin()) 
    7777        { 
    78             $html .= "<a href=\"javascript:openWindow('?a=comments_delete&c_id=".$data['id']."', null, 480, 350, '' );\">Delete Comment</a>"; 
     78            $html .= "<a href=\"javascript:openWindow('?a=comments_delete&c_id=".$data['ID']."', null, 480, 350, '' );\">Delete Comment</a>"; 
    7979        } 
    8080        $html .= "</div>";