Update BlogHooks.php

Fixing error