Changeset 38

Show
Ignore:
Timestamp:
03/14/06 16:13:10 (2 years ago)
Author:
eadiaz
Message:

Bug, wasn't checking anonymous users in memes->filter_result().

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/public_html/akarru.lib/memes.php

    r36 r38  
    196196                        $meme_id = $meme->ID; 
    197197                        $uid = $this->user_id; 
     198                        if (empty($uid)) { 
     199                                $uid = 0; 
     200                        } 
    198201                        $meme->voted = $this->db->fetch_scalar("select count(*) from post_votes where post_id = $meme_id and user_id = $uid "); 
    199202                        $result[] = $meme;