修改
This commit is contained in:
@@ -795,7 +795,7 @@ class Workbench extends Base
|
|||||||
if(empty($aArticle['journal_id'])){
|
if(empty($aArticle['journal_id'])){
|
||||||
return json_encode(array('status' => 8,'msg' => 'The article is not associated with a journal' ));
|
return json_encode(array('status' => 8,'msg' => 'The article is not associated with a journal' ));
|
||||||
}
|
}
|
||||||
$aWhere = ['state' => 0,'journal_id' => 23];
|
$aWhere = ['state' => 0,'journal_id' => $aArticle['journal_id']];
|
||||||
$aJournal = Db::name('journal')->where($aWhere)->find();
|
$aJournal = Db::name('journal')->where($aWhere)->find();
|
||||||
if(empty($aJournal)){
|
if(empty($aJournal)){
|
||||||
return json_encode(array('status' => 9,'msg' => 'No journal information found' ));
|
return json_encode(array('status' => 9,'msg' => 'No journal information found' ));
|
||||||
|
|||||||
Reference in New Issue
Block a user