Campaign Gallery PHP Warning fix