|
|
@@ -189,9 +189,11 @@ class Course extends Component
|
|
|
$this->msgPrices = '';
|
|
|
$this->msgWhen = '';
|
|
|
|
|
|
- if ($this->when[0]['from'] == '')
|
|
|
- $this->msgWhen = 'Devi inserire almeno un giorno';
|
|
|
-
|
|
|
+ if ($this->type == 'standard') {
|
|
|
+ if ($this->when[0]['from'] == '')
|
|
|
+ $this->msgWhen = 'Devi inserire almeno un giorno';
|
|
|
+ }
|
|
|
+
|
|
|
if ($this->prices[0]['course_subscription_id'] == null)
|
|
|
$this->msgPrices = 'Devi inserire almeno un prezzo';
|
|
|
|