Fix for issue #283

https://github.com/philsturgeon/codeigniter-restserver/issues/283
Damn, this got away from me :) It's another fix I will push with another pull request..
the first if should read :
if (!$result) {
instead of:
if ( ! $result or $result->hour_started < time() - (60 * 60)) {
and api_key_id should be api_key for you guys. But like I said it's safe to update because the else if will never be called for now.