Changeset 122

Show
Ignore:
Timestamp:
2008-01-08 21:21:20 (1 year ago)
Author:
hannes
Message:

fixing Member::recountPosts to use the actual member id instead of '1' in postedbymember column

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/misc/Member.php

    r116 r122  
    315315        $q = $C->prepare('SELECT COALESCE(COUNT(*), 0) FROM ' . $SETTINGS['dbtableprefix'] . 'posts WHERE poster = :membername AND postedbymember = :one'); 
    316316        $q->bindParam(':membername', $this->name, PDO::PARAM_STR); 
    317         $q->bindValue(':one', 1, PDO::PARAM_INT); 
     317        $q->bindValue(':one', $this->id, PDO::PARAM_INT); 
    318318        $q->execute(); 
    319319        $this->posts = $q->fetchColumn();