CC-1927 Remove PEAR DB

* Removed the DEB package "php-db" from the full install script as it is
  no longer needed.
* Missed one call to PEAR::isError()
This commit is contained in:
paul.baranowski 2012-04-05 02:41:51 -04:00 committed by Martin Konecny
parent 9ec584e90c
commit 235997c616
4 changed files with 8 additions and 9 deletions

View file

@ -69,13 +69,12 @@ class AirtimeInstall
}
if ($version == '') {
$sql = "SELECT * FROM cc_show_rebroadcast LIMIT 1";
$result = $con->query($sql)->fetchColumn(0);
if (!PEAR::isError($result)) {
try {
// If this table exists, then it's 1.7.0
$sql = "SELECT * FROM cc_show_rebroadcast LIMIT 1";
$result = $con->query($sql)->fetchColumn(0);
$version = "1.7.0";
//echo "Airtime Version: ".$version." ".PHP_EOL;
}
else {
} catch (Exception $e) {
$version = null;
}
}