← All changes
|
app/src/Document/Models/Common/Styles/Transition.php
+1
-1
1.3.5
→
1.9.2
View file →
| @@ -23,9 +23,9 @@ | ||
| 23 | 23 | public function set( $css ) { |
| 24 | 24 | $devices = Breakpoints::names(); |
| 25 | 25 | foreach ( $devices as $device ) { |
| 26 | 26 | if ( !empty( $this->{$device} ) ) { |
| 27 | - if ( !empty( $this->{$device}->enable ) ) { | |
| 27 | + if ( !empty( $this->{$device}->enable ) && isset( $this->{$device}->timingFunction ) ) { | |
| 28 | 28 | $duration = isset( $this->{$device}->duration ) ? $this->{$device}->duration : 0; |
| 29 | 29 | $css[ $device ][ self::NAME ] = "all " . $this->{$device}->timingFunction . ' ' . $duration . 's'; |
| 30 | 30 | } |
| 31 | 31 | } |