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:
parent
9ec584e90c
commit
235997c616
4 changed files with 8 additions and 9 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue