mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 23:42:32 +01:00
Fixed on no domains errors thrown in info card
Fixed on no domains errors thrown in info card
This commit is contained in:
parent
ec9a931ff6
commit
c5af0d72e4
@ -2632,7 +2632,12 @@ class idlers extends helperFunctions
|
|||||||
|
|
||||||
$oldest_d = $this->dbConnect()->prepare("SELECT `domain`, `owned_since` FROM `domains` ORDER BY `owned_since`;");
|
$oldest_d = $this->dbConnect()->prepare("SELECT `domain`, `owned_since` FROM `domains` ORDER BY `owned_since`;");
|
||||||
$oldest_d->execute();
|
$oldest_d->execute();
|
||||||
|
if (isset($oldest_d->fetchAll(PDO::FETCH_ASSOC)[0])){
|
||||||
$oldest_d_row = $oldest_d->fetchAll(PDO::FETCH_ASSOC)[0];
|
$oldest_d_row = $oldest_d->fetchAll(PDO::FETCH_ASSOC)[0];
|
||||||
|
} else {
|
||||||
|
$oldest_d_row = array('domain' => null, 'owned_since' => null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$sel_price = $this->dbConnect()->prepare("SELECT `as_usd`, `term`, `usd_per_month` FROM `pricing`;");
|
$sel_price = $this->dbConnect()->prepare("SELECT `as_usd`, `term`, `usd_per_month` FROM `pricing`;");
|
||||||
$sel_price->execute();
|
$sel_price->execute();
|
||||||
|
Loading…
Reference in New Issue
Block a user