The problem isn't here...you probably did something before this, something that never gave $img a value perhaps?
Also, don't use empty if statements, it's a bad habit. Use this instead:
if ($img != null)
{
unlink("/home/evanbart/www/nbl/cms/uploads/breaking_news/photos/" . $delfile);
}