Completed
Push — master ( fd0c8a...c024a6 )
by
unknown
03:33 queued 01:53
created

onupdate.php ➔ xoops_module_update_smallworld()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * @return bool
5
 */
6
function xoops_module_update_smallworld()
7
{
8
    $db  = XoopsDatabaseFactory::getDatabaseConnection();
9
    $sql = 'UPDATE ' . $db->prefix('config') . " SET conf_value = 1 WHERE conf_name = 'smallworldprivorpub'";
10
    $db->queryF($sql);
11
    return true;
12
}
13