Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as PHP by fix #1 ( 15 years ago )
Yii::app()->cache->setVoteCache($id, $cache);
  
if(!isset(Yii::app()->session['comment_votes'])) {
    Yii::app()->session['comment_votes'] = array(
        $id => true,
    );
}

 

Revise this Paste

Parent: 41751
Your Name: Code Language: