PHP Notice fix

PHP Notice: Undefined index: id in ActiveResource.php on line 299