fixed a PHP warning

there's an implicit cast from `stdClass` to `int` that was causing the warning.

see https://github.com/misterbisson/scriblio-authority/issues/78