basho / riak-php-client

PHP clients for Riak
Apache License 2.0
160 stars 69 forks source link

Using isset() to check if bucket props exist to avoid PHP notice #116

Closed lastzero closed 8 years ago

lastzero commented 8 years ago

If "props" is not set, you'll get the notice "Undefined index: props" otherwise.

Example: Adding an index returns with {"search_index":"schema does not exist"} if a schema does not exist. Actually, the client library should return an error in this case, if the HTTP status code was properly set by Riak. Maybe that's another bug?

christophermancini commented 8 years ago

Thanks for catching that @lastzero