You can just say:

```php
global $c;
```

...right at the top of the function and it should work. `var_dump` it to make sure, though.