We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee58b48 commit 378da30Copy full SHA for 378da30
logic/LTutor/LTutor.php
@@ -1034,9 +1034,9 @@ public function uploadZip($userid, $courseid)
1034
}
1035
1036
// checks if file with this markingid exists
1037
- if ($markingFile == '' || file_exists($files.'/'.$markingFile)) {
+ if ($markingFile == null || $markingFile == '' || file_exists($files.'/'.$markingFile)) {
1038
1039
- if ($markingFile!=''){
+ if ($markingFile!='' && $markingFile!=null){
1040
$fileAddress = $files.'/'.$markingFile; ///file_get_contents($files.'/'.$markingFile);
1041
// file
1042
$fileInfo = pathinfo($markingFile);
0 commit comments