displaytweets icon indicating copy to clipboard operation
displaytweets copied to clipboard

Fixed Error caused by OAuthException class being redeclared.

Open blizzrdof77 opened this issue 8 years ago • 0 comments

Fixes Issue #19

Cause: PHP Class "OAuthException" being redeclared if it already exists.

Solution: Only declare if it doesn't already exist.

if (!class_exists('OAuthException')) 
  class OAuthException extends Exception {
    // pass
  }
}

Resolves the following error message: Cannot redeclare class OAuthException

blizzrdof77 avatar Jul 15 '16 19:07 blizzrdof77