CC-3175: Delete database tables on uninstall
- fixed
This commit is contained in:
parent
d97b9ad164
commit
2a8592584d
1 changed files with 5 additions and 0 deletions
|
@ -67,6 +67,11 @@ class AirtimeInstall
|
||||||
$sql = "SELECT valstr FROM cc_pref WHERE keystr = 'system_version'";
|
$sql = "SELECT valstr FROM cc_pref WHERE keystr = 'system_version'";
|
||||||
$version = $CC_DBC->GetOne($sql);
|
$version = $CC_DBC->GetOne($sql);
|
||||||
|
|
||||||
|
if (PEAR::isError($version)) {
|
||||||
|
// no pref table something is wrong.
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if ($version == '') {
|
if ($version == '') {
|
||||||
$sql = "SELECT * FROM cc_show_rebroadcast LIMIT 1";
|
$sql = "SELECT * FROM cc_show_rebroadcast LIMIT 1";
|
||||||
$result = $CC_DBC->GetOne($sql);
|
$result = $CC_DBC->GetOne($sql);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue