CC-3175: Delete database tables on uninstall

- fixed
This commit is contained in:
james 2011-12-18 19:08:35 -05:00
parent d97b9ad164
commit 2a8592584d
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,11 @@ class AirtimeInstall
$sql = "SELECT valstr FROM cc_pref WHERE keystr = 'system_version'";
$version = $CC_DBC->GetOne($sql);
if (PEAR::isError($version)) {
// no pref table something is wrong.
return null;
}
if ($version == '') {
$sql = "SELECT * FROM cc_show_rebroadcast LIMIT 1";
$result = $CC_DBC->GetOne($sql);