* fix explode usages for php 5.3.
This commit is contained in:
@@ -216,8 +216,9 @@ class xuanxuanIm extends imModel
|
||||
}
|
||||
if ($contentData->objectType == 'story' && $contentData->action == 'reviewed')
|
||||
{
|
||||
$extra = explode(',', $contentDataOuter->extra)[0];
|
||||
$messageGroups["$contentData->objectType-$contentData->parentType-$contentData->action-$contentData->actor-$extra"][] = $message;
|
||||
$extra = explode(',', $contentDataOuter->extra);
|
||||
$actor = $extra[0];
|
||||
$messageGroups["$contentData->objectType-$contentData->parentType-$contentData->action-$contentData->actor-$actor"][] = $message;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -53,7 +53,8 @@ class xuanxuanMessage extends messageModel
|
||||
$title = $objectType == 'mr' ? '' : sprintf($this->lang->message->notifyTitle, $this->app->user->realname, $this->lang->action->label->$actionType, 1, $this->lang->action->objectTypes[$objectType]);
|
||||
if($objectType == 'story' && $actionType == 'reviewed' && !empty($extra))
|
||||
{
|
||||
$notifyType = strtolower(explode(',', $extra)[0]);
|
||||
$notifyExtra = explode(',', $extra);
|
||||
$notifyType = strtolower($notifyExtra[0]);
|
||||
if($notifyType == 'pass')
|
||||
{
|
||||
$title = sprintf($this->lang->message->notifyPassTitle, $this->app->user->realname, 1);
|
||||
|
||||
Reference in New Issue
Block a user