From 2a8592584db3513519d18e97b1df8c80ea482b06 Mon Sep 17 00:00:00 2001 From: james Date: Sun, 18 Dec 2011 19:08:35 -0500 Subject: [PATCH] CC-3175: Delete database tables on uninstall - fixed --- install_minimal/include/AirtimeInstall.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/install_minimal/include/AirtimeInstall.php b/install_minimal/include/AirtimeInstall.php index cc22213f2..d101f2e4f 100644 --- a/install_minimal/include/AirtimeInstall.php +++ b/install_minimal/include/AirtimeInstall.php @@ -66,6 +66,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";