| 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_adslight() |
||
| 15 | { |
||
| 16 | /** @var \XoopsMySQLDatabase $xoopsDB */ |
||
| 17 | $xoopsDB = \XoopsDatabaseFactory::getDatabaseConnection(); |
||
| 18 | $ret = []; |
||
| 19 | $block = []; |
||
| 20 | |||
| 21 | $result = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix('adslight_listing') . " WHERE valid='No'"); |
||
| 22 | if ($result) { |
||
| 23 | $block['adminlink'] = XOOPS_URL . '/modules/adslight/admin/validate_ads.php'; |
||
| 24 | [$block['pendingnum']] = $xoopsDB->fetchRow($result); |
||
|
|
|||
| 25 | $block['lang_linkname'] = _PI_WAITING_WAITINGS; |
||
| 26 | } |
||
| 27 | |||
| 28 | $ret[] = $block; |
||
| 29 | |||
| 30 | return $ret; |
||
| 31 | } |
||
| 32 |