| Conditions | 5 |
| Paths | 16 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | function mylinks_com_update($link_id, $total_num) |
||
| 9 | { |
||
| 10 | $link_id = isset($link_id) ? (int)$link_id : 0; |
||
| 11 | $total_num = (isset($total_num) && ((int)$total_num > 0)) ? (int)$total_num : 0; |
||
| 12 | if ($link_id > 0) { |
||
| 13 | $db = XoopsDatabaseFactory::getDatabaseConnection(); |
||
| 14 | $sql = 'UPDATE ' . $db->prefix('mylinks_links') . " SET comments={$total_num} WHERE lid={$link_id}"; |
||
| 15 | $db->query($sql); |
||
| 16 | } |
||
| 17 | } |
||
| 18 | |||
| 26 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.