Commit 8b6b2668 authored by jonnybradley's avatar jonnybradley

[FIX] notice (non-existent pref)

parent f73b53ff
......@@ -3,7 +3,7 @@
if( $user )
{
require_once( 'lib/credits/creditslib.php' );
if ($prefs['account_suspended'] != 'y') {
if (isset($prefs['account_suspended']) && $prefs['account_suspended'] != 'y') {
$tiki_user_credits = $creditslib->getScaledCredits( $tikilib->get_user_id($user) );
} else {
$tiki_user_credits = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment