|
@@ -48,8 +48,14 @@ class Resp extends Object_ext {
|
|
|
$this->events = self::$ext_events;
|
|
|
self::$ext_events = array();
|
|
|
if (count($this->events) > 0) {
|
|
|
- if (!array_key_exists('store', (array) $this->result)) {
|
|
|
- $this->result['store'] = req()->userInfo->game->store;
|
|
|
+ if (is_array($this->result)) {
|
|
|
+ if (!array_key_exists('store', (array) $this->result)) {
|
|
|
+ $this->result['store'] = req()->userInfo->game->store;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (!array_key_exists('store', (array) $this->result)) {
|
|
|
+ $this->result->store = req()->userInfo->game->store;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|