Vizzuality / cartodbclient-php

A CartoDB client for PHP
http://developers.cartodb.com
BSD 4-Clause "Original" or "Old" License
33 stars 17 forks source link

Check OAuthException exists before declaring #10

Open acouch opened 10 years ago

acouch commented 10 years ago

A number of other libraries and code bases already declare an OAuthException exception class causing a Fatal error: Cannot redeclare class OAuthException notice.

PR #9 wraps it in a if (!class_exists('OAuthException')) to prevent the fatal error if it already has been declared.