mirror of
				https://github.com/cp6/my-idlers.git
				synced 2025-11-03 23:59:09 +00: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
					
				
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		
		Reference in a new issue