@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | return response()->json([ |
| 17 | 17 | 'count' => $snippet->votes->count(), |
| 18 | - 'favourited' => (bool) count($changes['attached']), |
|
| 18 | + 'favourited' => (bool) count($changes[ 'attached' ]), |
|
| 19 | 19 | ]); |
| 20 | 20 | } |
| 21 | 21 | } |