Changeset 6853

Show
Ignore:
Timestamp:
09/26/08 20:13:33 (5 years ago)
Author:
p_lindheimer
Message:

fixes #3237 undefined variable

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/conferences/page.conferences.php

    r6653 r6853  
    1212//GNU General Public License for more details. 
    1313 
     14$dispnum = "conferences"; //used for switch on config.php 
    1415 
    1516isset($_REQUEST['action'])?$action = $_REQUEST['action']:$action=''; 
    1617//the extension we are currently displaying 
    1718isset($_REQUEST['extdisplay'])?$extdisplay=$_REQUEST['extdisplay']:$extdisplay=''; 
    18 $dispnum = "conferences"; //used for switch on config.php 
     19 
     20$account = isset($_REQUEST['account']) ? $_REQUEST['account'] : ''; 
    1921 
    2022//check if the extension is within range for this user 
     
    3133      if (!empty($usage_arr)) { 
    3234        $conflict_url = framework_display_extension_usage_alert($usage_arr); 
    33       } elseif (conferences_add($_REQUEST['account'],$_REQUEST['name'],$_REQUEST['userpin'],$_REQUEST['adminpin'],$_REQUEST['options'],$_REQUEST['joinmsg_id']) !== false) { 
     35      } elseif (conferences_add($account,$_REQUEST['name'],$_REQUEST['userpin'],$_REQUEST['adminpin'],$_REQUEST['options'],$_REQUEST['joinmsg_id']) !== false) { 
    3436        needreload(); 
    3537        redirect_standard(); 
     
    4244    break; 
    4345    case "edit":  //just delete and re-add 
    44       conferences_del($_REQUEST['account']); 
    45       conferences_add($_REQUEST['account'],$_REQUEST['name'],$_REQUEST['userpin'],$_REQUEST['adminpin'],$_REQUEST['options'],$_REQUEST['joinmsg_id']); 
     46      conferences_del($account); 
     47      conferences_add($account,$_REQUEST['name'],$_REQUEST['userpin'],$_REQUEST['adminpin'],$_REQUEST['options'],$_REQUEST['joinmsg_id']); 
    4648      needreload(); 
    4749      redirect_standard('extdisplay');