Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
7 | function b_waiting_myalbum_0($mydirnumber = '') |
||
8 | { |
||
9 | /** @var \XoopsMySQLDatabase $xoopsDB */ |
||
10 | $xoopsDB = \XoopsDatabaseFactory::getDatabaseConnection(); |
||
11 | $ret = []; |
||
12 | $block = []; |
||
13 | |||
14 | $result = $xoopsDB->query('SELECT COUNT(*) FROM ' . $xoopsDB->prefix("myalbum{$mydirnumber}_photos") . ' WHERE STATUS=0'); |
||
15 | if ($result) { |
||
16 | $block['adminlink'] = XOOPS_URL . "/modules/myalbum{$mydirnumber}/admin/admission.php"; |
||
17 | [$block['pendingnum']] = $xoopsDB->fetchRow($result); |
||
|
|||
18 | $block['lang_linkname'] = _PI_WAITING_WAITINGS . ('' === $mydirnumber ? '' : "({$mydirnumber})"); |
||
19 | } |
||
20 | |||
21 | $ret[] = $block; |
||
22 | |||
23 | return $ret; |
||
24 | } |
||
36 |