| @@ -14,11 +14,11 @@ | ||
| 14 | 14 | public function set( $css ) { |
| 15 | 15 | $devices = Breakpoints::names(); |
| 16 | 16 | foreach ( $devices as $device ) { |
| 17 | 17 | if ( ! empty( $this->{$device} ) ) { |
| 18 | - if ( $this->{$device}->link ) { | |
| 18 | + if ( !empty( $this->{$device}->link ) ) { | |
| 19 | 19 | $css[ $device ][ self::NAME ] = $this->{$device}->top->value . $this->{$device}->top->unit; |
| 20 | - } else { | |
| 20 | + } elseif( isset( $this->{$device}->top ) ) { | |
| 21 | 21 | $css[ $device ][ self::NAME ] = $this->{$device}->top->value . $this->{$device}->top->unit . ' ' . $this->{$device}->right->value . $this->{$device}->right->unit . ' ' . $this->{$device}->bottom->value . $this->{$device}->bottom->unit . ' ' . $this->{$device}->left->value . $this->{$device}->left->unit; |
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | } |