A PHP Error was encountered

Severity: Notice

Message: Undefined index: mag_id

Filename: controllers/news.php

Line Number: 28