Closed (fixed)
Project:
User Karma
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Dec 2007 at 02:13 UTC
Updated:
9 Jan 2008 at 08:30 UTC
Hi, I get the following error when I upload the User Karma module to the modules folder.
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in modules/user_karma/user_karma.module on line 779
Once I remove User Karma from the modules folder the error disappears and my site works again.
Can you please help me?
Comments
Comment #1
mercmobily commentedHi,
My apologies. I forgot to cvs-commit the fix...
It should work as soon as the daily snapshot is done on the Drupal server!
Alternatively, just change the function user_karma_user_karma() into:
function user_karma_user_karma($uid){
$r=votingapi_get_vote('user',$uid, 'karma_points','karma',1);
return (int)$r->value;
}
Bye!
Merc.
Comment #2
mercmobily commented