]> git.mjollnir.org Git - moodle.git/commitdiff
fixed warning
authorskodak <skodak>
Sun, 17 Sep 2006 20:51:54 +0000 (20:51 +0000)
committerskodak <skodak>
Sun, 17 Sep 2006 20:51:54 +0000 (20:51 +0000)
lib/uploadlib.php

index b272a4a8543bd8a445aeeffa60015743970e328f..2be27a80946e7b97565d54beef3bba09f1ee1a0f 100644 (file)
@@ -111,7 +111,7 @@ class upload_manager {
                     // this shouldn't cause everything to stop.. modules should be responsible for knowing which if any are compulsory.
                     continue; 
                 }
-                if ($this->status && $CFG->runclamonupload) {
+                if ($this->status && !empty($CFG->runclamonupload)) {
                     $this->status = clam_scan_file($this->files[$name],$this->course);
                 }
                 if (!$this->status) {