Got rid of warning messages about undefined variables/array values.
This commit is contained in:
parent
f04c6ee742
commit
897e6d0918
|
@ -3,7 +3,7 @@ require_once dirname(__FILE__).'/../ui_browser_init.php';
|
|||
|
||||
if (UI_DEBUG === TRUE) $Smarty->assign('DEBUG', TRUE);
|
||||
|
||||
if (is_array($_REQUEST['popup'])){
|
||||
if (isset($_REQUEST['popup']) && is_array($_REQUEST['popup'])){
|
||||
foreach ($_REQUEST['popup'] as $val) {
|
||||
switch ($val) {
|
||||
case "jscom":
|
||||
|
@ -249,7 +249,8 @@ if (is_array($_REQUEST['popup'])){
|
|||
};
|
||||
|
||||
if ($uiBrowser->userid) {
|
||||
switch ($_REQUEST['act']){
|
||||
$action = isset($_REQUEST['act']) ? $_REQUEST['act'] : null;
|
||||
switch ($action) {
|
||||
case "fileList":
|
||||
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->fid));
|
||||
$Smarty->assign('fileList', TRUE);
|
||||
|
@ -277,7 +278,12 @@ if ($uiBrowser->userid) {
|
|||
case "addFileData":
|
||||
case "addFileMData":
|
||||
$Smarty->assign('structure', $uiBrowser->getStructure($uiBrowser->id));
|
||||
$Smarty->assign('editItem', array('type' => 'audioclip', 'id' => $_REQUEST['id'], 'folderId' => $uiBrowser->fid, 'curr_langid' => $_REQUEST['curr_langid']));
|
||||
$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : null;
|
||||
$langId = isset($_REQUEST['curr_langid']) ? $_REQUEST['curr_langid'] : null;
|
||||
$Smarty->assign('editItem', array('type' => 'audioclip',
|
||||
'id' => $id,
|
||||
'folderId' => $uiBrowser->fid,
|
||||
'curr_langid' => $langId));
|
||||
break;
|
||||
|
||||
case "addWebstreamData":
|
||||
|
@ -371,7 +377,7 @@ if ($uiBrowser->userid) {
|
|||
case "SUBJECTS.remSubj":
|
||||
case "SUBJECTS.chgPasswd":
|
||||
$Smarty->assign('showSubjects', TRUE);
|
||||
$Smarty->assign('act', $_REQUEST['act']);
|
||||
$Smarty->assign('act', $action);
|
||||
break;
|
||||
|
||||
case "BACKUP":
|
||||
|
@ -379,11 +385,11 @@ if ($uiBrowser->userid) {
|
|||
case "BACKUP.schedule":
|
||||
case "SCHEDULER.import":
|
||||
case "SCHEDULER.export":
|
||||
$Smarty->assign('act', $_REQUEST['act']);
|
||||
$Smarty->assign('act', $action);
|
||||
break;
|
||||
}
|
||||
|
||||
if ($_REQUEST['act'] != 'SCHEDULER') {
|
||||
if ($action != 'SCHEDULER') {
|
||||
$Smarty->assign('simpleSearchForm', $uiBrowser->SEARCH->simpleSearchForm($ui_fmask['simplesearch']));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue