Changeset 1114

Show
Ignore:
Timestamp:
05/22/08 04:44:48 (6 months ago)
Author:
_ck_
Message:

bug fix attempt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bb-attachments/trunk/bb-attachments.php

    r1097 r1114  
    206206if (!$post_id) {$post_id=intval($_GET['bb_attachments']);}      // only can upload if user is allowed to edit post 
    207207$user_id=bb_get_current_user_info( 'id' ); 
    208 if (!isset($_FILES) || !is_array($_FILES) || !$user_id || !$post_id || !bb_current_user_can('edit_post',$post_id) || !bb_current_user_can($bb_attachments['role']['upload'])) {return;}        
     208if (!isset($_FILES['bb_attachments']) || !is_array($_FILES['bb_attachments']) || !$user_id || !$post_id || !bb_current_user_can('edit_post',$post_id) || !bb_current_user_can($bb_attachments['role']['upload'])) {return;}    
    209209 
    210210$user_ip=$_SERVER["REMOTE_ADDR"];       // $GLOBALS["HTTP_SERVER_VARS"]["REMOTE_ADDR"];