kopia lustrzana https://github.com/jprochazka/adsb-receiver
				
				
				
			Merge branch '2.5.0' of https://github.com/jprochazka/adsb-receiver into 2.5.0
						commit
						42d6b03c10
					
				| 
						 | 
				
			
			@ -93,7 +93,7 @@
 | 
			
		|||
                    $sql = "INSERT INTO ".$settings::db_prefix."notifications (flight, lastMessageCount) VALUES (:flight, :lastMessageCount)";
 | 
			
		||||
                    $sth = $dbh->prepare($sql);
 | 
			
		||||
                    $sth->bindParam(':flight', $flight, PDO::PARAM_STR, 10);
 | 
			
		||||
                    $sth->bindParam(':lastMessageCount', 0, PDO::PARAM_INT);
 | 
			
		||||
                    $sth->bindParam(':lastMessageCount', $a = 0, PDO::PARAM_INT);
 | 
			
		||||
                    $sth->execute();
 | 
			
		||||
                    $sth = NULL;
 | 
			
		||||
                    $dbh = NULL;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -60,7 +60,7 @@
 | 
			
		|||
                $sql = "SELECT * FROM ".$settings::db_prefix."blogPosts ORDER BY date ".$orderBy;
 | 
			
		||||
                $sth = $dbh->prepare($sql);
 | 
			
		||||
                $sth->execute();
 | 
			
		||||
                $posts = $sth->fetchAll();
 | 
			
		||||
                $posts = $sth->fetchAll(PDO::FETCH_ASSOC);
 | 
			
		||||
                $sth = NULL;
 | 
			
		||||
                $dbh = NULL;
 | 
			
		||||
                return $posts;
 | 
			
		||||
| 
						 | 
				
			
			@ -90,7 +90,7 @@
 | 
			
		|||
                $sth = $dbh->prepare($sql);
 | 
			
		||||
                $sth->bindParam(':title', $title, PDO::PARAM_STR, 100);
 | 
			
		||||
                $sth->execute();
 | 
			
		||||
                $blogPost = $sth->fetch();
 | 
			
		||||
                $blogPost = $sth->fetch(PDO::FETCH_ASSOC);
 | 
			
		||||
                $sth = NULL;
 | 
			
		||||
                $dbh = NULL;
 | 
			
		||||
                return $blogPost;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -50,7 +50,7 @@
 | 
			
		|||
                $sql = "SELECT name, address FROM ".$settings::db_prefix."links ORDER BY name";
 | 
			
		||||
                $sth = $dbh->prepare($sql);
 | 
			
		||||
                $sth->execute();
 | 
			
		||||
                $links = $sth->fetchAll();
 | 
			
		||||
                $links = $sth->fetchAll(PDO::FETCH_ASSOC);
 | 
			
		||||
                $sth = NULL;
 | 
			
		||||
                $dbh = NULL;
 | 
			
		||||
            }
 | 
			
		||||
| 
						 | 
				
			
			@ -79,7 +79,7 @@
 | 
			
		|||
                $sth = $dbh->prepare($sql);
 | 
			
		||||
                $sth->bindParam(':name', $name, PDO::PARAM_STR, 100);
 | 
			
		||||
                $sth->execute();
 | 
			
		||||
                $link = $sth->fetch();
 | 
			
		||||
                $link = $sth->fetch(PDO::FETCH_ASSOC);
 | 
			
		||||
                $sth = NULL;
 | 
			
		||||
                $dbh = NULL;
 | 
			
		||||
                return $link;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue