Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
14 | function b_waiting_smartsection() |
||
15 | { |
||
16 | /** @var \XoopsMySQLDatabase $xoopsDB */ |
||
17 | $xoopsDB = \XoopsDatabaseFactory::getDatabaseConnection(); |
||
18 | $ret = []; |
||
19 | |||
20 | // smartsection submitted |
||
21 | $block = []; |
||
22 | $result = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('smartsection_items') . ' WHERE status=1'); |
||
23 | if ($result) { |
||
24 | $block['adminlink'] = XOOPS_URL . '/modules/smartsection/admin/index.php?statussel=1'; |
||
25 | [$block['pendingnum']] = $xoopsDB->fetchRow($result); |
||
|
|||
26 | $block['lang_linkname'] = _PI_WAITING_SUBMITTED; |
||
27 | } |
||
28 | $ret[] = $block; |
||
29 | |||
30 | return $ret; |
||
31 | } |
||
32 |