View Single Post
Old 10-28-2011, 07:13 PM  
Mamassita
Confirmed User
 
Join Date: Nov 2009
Posts: 252
PHP Help Needed :)

Building a paid module for a custom tube script, but i'm getting this error


Notice: Undefined variable: paid in /home/nakedmov/public_html/xxx/video.php on line 179

Notice: Undefined variable: paid in /home/nakedmov/public_html/xxx/video.php on line 213


Line 179 to 187
PHP Code:
if($paid == false){
    if(isset(
$users_credits)){
        if(
$credits $users_credits){
            
$errors[] = 'Not enough credits for this action. Visit credits page from your profile to charge up your account!';
        }        
    } else {
        
$errors[] = 'You need to login before you can watch this video';
    }    

Line 213
PHP Code:
$smarty->assign('paid',$paid); 
Anyone know what i've done wrong ?

Thanks
Mamassita is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote