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