Changeset 6516

Show
Ignore:
Timestamp:
08/31/08 13:22:21 (3 months ago)
Author:
p_lindheimer
Message:

fixes #3135 remove extract() call and always initialize the variables

Files:

Legend:

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

    r6422 r6516  
    7979                //get details for this meetme 
    8080                $thisMeetme = conferences_get($extdisplay); 
    81                 //create variables 
    82                 extract($thisMeetme); 
     81                $options     = $thisMeetme['options']; 
     82                $userpin     = $thisMeetme['userpin']; 
     83                $adminpin    = $thisMeetme['adminpin']; 
     84                $description = $thisMeetme['description']; 
     85                $joinmsg_id  = $thisMeetme['joinmsg_id']; 
     86        } else { 
     87                $options     = ""; 
     88                $userpin     = ""; 
     89                $adminpin    = ""; 
     90                $description = ""; 
     91                $joinmsg_id  = ""; 
    8392        } 
    8493 
     
    124133        <tr> 
    125134                <td><a href="#" class="info"><?php echo _("Conference Name:")?><span><?php echo _("Give this conference a brief name to help you identify it.")?></span></a></td> 
    126                 <td><input type="text" name="name" value="<?php echo (isset($description) ? $description : ''); ?>" tabindex="<?php echo ++$tabindex;?>"></td> 
     135                <td><input type="text" name="name" value="<?php echo $description; ?>" tabindex="<?php echo ++$tabindex;?>"></td> 
    127136        </tr> 
    128137        <tr> 
    129138                <td><a href="#" class="info"><?php echo _("User PIN:")?><span><?php echo _("You can require callers to enter a password before they can enter this conference.<br><br>This setting is optional.<br><br>If either PIN is entered, the user will be prompted to enter a PIN.")?></span></a></td> 
    130                 <td><input size="8" type="text" name="userpin" value="<?php echo (isset($userpin) ? $userpin : ''); ?>" tabindex="<?php echo ++$tabindex;?>"></td> 
     139                <td><input size="8" type="text" name="userpin" value="<?php echo $userpin; ?>" tabindex="<?php echo ++$tabindex;?>"></td> 
    131140        </tr> 
    132141        <tr> 
    133142                <td><a href="#" class="info"><?php echo _("Admin PIN:")?><span><?php echo _("Enter a PIN number for the admin user.<br><br>This setting is optional unless the 'leader wait' option is in use, then this PIN will identify the leader.")?></span></a></td> 
    134                 <td><input size="8" type="text" name="adminpin" value="<?php echo (isset($adminpin) ? $adminpin : ''); ?>" tabindex="<?php echo ++$tabindex;?>"></td> 
    135         </tr> 
    136  
    137         <?php 
    138         $options = (isset($options) ? $options : ""); 
    139         ?> 
     143                <td><input size="8" type="text" name="adminpin" value="<?php echo $adminpin; ?>" tabindex="<?php echo ++$tabindex;?>"></td> 
     144        </tr> 
     145 
    140146        <input type="hidden" name="options" value="<?php echo $options; ?>"> 
    141147         
     
    148154                        <?php 
    149155                                $tresults = recordings_list(); 
    150                                 $default = (isset($joinmsg_id) ? $joinmsg_id : ''); 
    151156                                echo '<option value="">'._("None")."</option>"; 
    152157                                if (isset($tresults[0])) { 
    153158                                        foreach ($tresults as $tresult) { 
    154                                                 echo '<option value="'.$tresult['id'].'"'.($tresult['id'] == $default ? ' SELECTED' : '').'>'.$tresult['displayname']."</option>\n"; 
     159                                                echo '<option value="'.$tresult['id'].'"'.($tresult['id'] == $joinmsg_id ? ' SELECTED' : '').'>'.$tresult['displayname']."</option>\n"; 
    155160                                        } 
    156161                                } 
     
    163168                <td><a href="#" class="info"><?php echo _("Join Message:")?><span><?php echo _("Message to be played to the caller before joining the conference.<br><br>You must install and enable the \"Systems Recordings\" Module to edit this option")?></span></a></td> 
    164169                <td> 
    165                         <?php 
    166                                 $default = (isset($joinmsg_id) ? $joinmsg_id : ''); 
    167                         ?> 
    168                         <input type="hidden" name="joinmsg_id" value="<?php echo $default; ?>"><?php echo ($default != '' ? $default : 'None'); ?> 
     170                        <input type="hidden" name="joinmsg_id" value="<?php echo $joinmsg_id; ?>"><?php echo ($joinmsg_id != '' ? $joinmsg_id : 'None'); ?> 
    169171                </td> 
    170172        </tr> 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads