diff --git a/OPSkinsOAuth.php b/OPSkinsOAuth.php index 62b563d..760efdf 100755 --- a/OPSkinsOAuth.php +++ b/OPSkinsOAuth.php @@ -510,7 +510,9 @@ public function loadClient(){ public function storeClient(){ $client_list = $this->getClientList(); - + if(empty($client_list)){ + $client_list = new \stdClass(); + } $client_list->{$this->client_id} = $this; if( !$this->verifyNonEmpty() ){