From a5476a4405ef3c17f64c79d30b4a6e67f257db95 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Fri, 21 Dec 2018 11:49:38 +0100 Subject: [PATCH] Moved q(\n"UPDATE to q("UPDATE --- update.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/update.php b/update.php index b497e04021..4fb3144920 100644 --- a/update.php +++ b/update.php @@ -50,8 +50,7 @@ function update_1178() $profile["pub_keywords"] = profile_clean_keywords($profile["pub_keywords"]); - $r = q( - "UPDATE `contact` SET `about` = '%s', `location` = '%s', `keywords` = '%s', `gender` = '%s' WHERE `self` AND `uid` = %d", + $r = q("UPDATE `contact` SET `about` = '%s', `location` = '%s', `keywords` = '%s', `gender` = '%s' WHERE `self` AND `uid` = %d", DBA::escape($profile["about"]), DBA::escape($profile["locality"]), DBA::escape($profile["pub_keywords"]), @@ -119,8 +118,7 @@ function update_1191() } // select old formlist addon entries - $r = q( - "SELECT `uid`, `cat`, `k`, `v` FROM `pconfig` WHERE `cat` = '%s' ", + $r = q("SELECT `uid`, `cat`, `k`, `v` FROM `pconfig` WHERE `cat` = '%s' ", DBA::escape('forumlist') ); @@ -161,8 +159,7 @@ function update_1191() function update_1203() { - $r = q( - "UPDATE `user` SET `account-type` = %d WHERE `page-flags` IN (%d, %d)", + $r = q("UPDATE `user` SET `account-type` = %d WHERE `page-flags` IN (%d, %d)", DBA::escape(Contact::ACCOUNT_TYPE_COMMUNITY), DBA::escape(Contact::PAGE_COMMUNITY), DBA::escape(Contact::PAGE_PRVGROUP) -- 2.39.5