| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 28 | function xoops_module_update_pm(&$module, $oldversion = null) |
||
| 29 | { |
||
| 30 | /* |
||
| 31 | $xoops = Xoops::getInstance(); |
||
| 32 | if ($oldversion <= 100) { |
||
| 33 | // Check pm table version |
||
| 34 | $sql = "SHOW COLUMNS FROM " . $xoopsDB->prefix("system_privatemessage"); |
||
| 35 | if (!$result = $xoopsDB->queryF($sql)) { |
||
| 36 | return false; |
||
| 37 | } |
||
| 38 | // Migrate from existent pm module |
||
| 39 | if (($rows = $xoopsDB->getRowsNum($result)) == 12) { |
||
| 40 | return true; |
||
| 41 | } elseif ($rows == 8) { |
||
| 42 | return $xoopsDB->queryFromFile(\XoopsBaseConfig::get('root-path') . "/modules/" . $module->getVar('dirname', 'n') . "/sql/mysql.upgrade.sql"); |
||
| 43 | } else { |
||
| 44 | return false; |
||
| 45 | } |
||
| 46 | } |
||
| 47 | */ |
||
| 48 | return true; |
||
| 49 | } |
||
| 50 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.