|
@@ -319,7 +319,7 @@ class Journal extends Core
|
|
public function read()
|
|
public function read()
|
|
{
|
|
{
|
|
if (!$this->data['uid']) {
|
|
if (!$this->data['uid']) {
|
|
- Dever::alert('错误的用户信息');
|
|
|
|
|
|
+ //Dever::alert('错误的用户信息');
|
|
}
|
|
}
|
|
# 验证是否可以阅读
|
|
# 验证是否可以阅读
|
|
$id = $this->check();
|
|
$id = $this->check();
|
|
@@ -368,9 +368,14 @@ class Journal extends Core
|
|
|
|
|
|
if ($info['type'] == 1 && $info['text']) {
|
|
if ($info['type'] == 1 && $info['text']) {
|
|
$info['text'] = Dever::array_decode($info['text']);
|
|
$info['text'] = Dever::array_decode($info['text']);
|
|
- if (isset($info['text']['bgcolor_type']) && $info['text']['bgcolor_type'] == 2) {
|
|
|
|
- $info['text']['bgcolor'] = '';
|
|
|
|
|
|
+ if ($info['text']) {
|
|
|
|
+ foreach ($info['text'] as $k => $v) {
|
|
|
|
+ if (isset($info['text'][$k]['bgcolor_type']) && $info['text'][$k]['bgcolor_type'] == array(2)) {
|
|
|
|
+ $info['text'][$k]['bgcolor'] = '';
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
} else {
|
|
} else {
|
|
unset($info['text']);
|
|
unset($info['text']);
|
|
}
|
|
}
|