mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-05 19:48:40 +00:00
fix api asignment
This commit is contained in:
parent
e26e820fd0
commit
73c1369fe1
|
|
@ -169,7 +169,7 @@ final class ApiController extends Controller
|
|||
|
||||
// allow comments
|
||||
if (!empty($request->getData('allow_comments'))
|
||||
&& !($commentApi = $this->app->moduleManager->get('Comments') instanceof NullModule)
|
||||
&& !(($commentApi = $this->app->moduleManager->get('Comments')) instanceof NullModule)
|
||||
) {
|
||||
/** @var \Modules\Comments\Controller\ApiController $commentApi */
|
||||
$commnetList = $commentApi->createCommentList();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user