File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -600,19 +600,19 @@ function(reponse) {
600
600
require 'lp_add_item.php ' ;
601
601
} else {
602
602
Session::write ('post_time ' , $ _POST ['post_time ' ]);
603
- $ directoryParentId = isset ( $ _POST ['directory_parent_id ' ]) ? $ _POST [ ' directory_parent_id ' ] : 0 ;
603
+ $ directoryParentId = $ _POST ['directory_parent_id ' ] ?? 0 ;
604
604
$ courseInfo = api_get_course_info ();
605
605
if (empty ($ directoryParentId )) {
606
606
$ _SESSION ['oLP ' ]->generate_lp_folder ($ courseInfo );
607
607
}
608
608
609
- $ parent = isset ( $ _POST ['parent ' ]) ? $ _POST [ ' parent ' ] : '' ;
610
- $ previous = isset ( $ _POST ['previous ' ]) ? $ _POST [ ' previous ' ] : '' ;
611
- $ type = isset ( $ _POST ['type ' ]) ? $ _POST [ ' type ' ] : '' ;
612
- $ path = isset ( $ _POST ['path ' ]) ? $ _POST [ ' path ' ] : '' ;
613
- $ description = isset ( $ _POST ['description ' ]) ? $ _POST [ ' description ' ] : '' ;
614
- $ prerequisites = isset ( $ _POST ['prerequisites ' ]) ? $ _POST [ ' prerequisites ' ] : '' ;
615
- $ maxTimeAllowed = isset ( $ _POST ['maxTimeAllowed ' ]) ? $ _POST [ ' maxTimeAllowed ' ] : '' ;
609
+ $ parent = $ _POST ['parent ' ] ?? '' ;
610
+ $ previous = $ _POST ['previous ' ] ?? '' ;
611
+ $ type = $ _POST ['type ' ] ?? '' ;
612
+ $ path = $ _POST ['path ' ] ?? '' ;
613
+ $ description = $ _POST ['description ' ] ?? '' ;
614
+ $ prerequisites = $ _POST ['prerequisites ' ] ?? '' ;
615
+ $ maxTimeAllowed = $ _POST ['maxTimeAllowed ' ] ?? '' ;
616
616
617
617
if ($ _POST ['type ' ] == TOOL_DOCUMENT ) {
618
618
You can’t perform that action at this time.
0 commit comments