From 63947093a499f4e7f268431b82973e370eb9af16 Mon Sep 17 00:00:00 2001 From: Kevin Cozens Date: Sat, 5 Jan 2019 14:31:22 -0500 Subject: [PATCH] Trivial formatting changes. --- webroot/profile.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/webroot/profile.php b/webroot/profile.php index e3aff9e..ebf57d0 100644 --- a/webroot/profile.php +++ b/webroot/profile.php @@ -4,14 +4,14 @@ include("databaseinfo.php"); // Attempt to connect to the database try { - $db = new PDO("mysql:host=$DB_HOST;dbname=$DB_NAME", $DB_USER, $DB_PASSWORD); - $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); + $db = new PDO("mysql:host=$DB_HOST;dbname=$DB_NAME", $DB_USER, $DB_PASSWORD); + $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch(PDOException $e) { - echo "Error connecting to database\n"; - file_put_contents('PDOErrors.txt', $e->getMessage() . "\n-----\n", FILE_APPEND); - exit; + echo "Error connecting to database\n"; + file_put_contents('PDOErrors.txt', $e->getMessage() . "\n-----\n", FILE_APPEND); + exit; } @@ -58,7 +58,8 @@ function avatarclassifiedsrequest($method_name, $params, $app_data) $uuid = $req['uuid']; - $query = $db->prepare("SELECT `classifieduuid`,`name` FROM classifieds WHERE creatoruuid = ?"); + $query = $db->prepare("SELECT classifieduuid,name" . + " FROM classifieds WHERE creatoruuid = ?"); $result = $query->execute( array($uuid) ); $data = array();