[aur-dev] [PATCH] Fix broken indentation in pkgbase_delete_comment()

Lukas Fleischer archlinux at cryptocrack.de
Tue Jul 1 13:57:05 EDT 2014


Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 web/lib/pkgbasefuncs.inc.php | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/web/lib/pkgbasefuncs.inc.php b/web/lib/pkgbasefuncs.inc.php
index ec48314..32c2d9b 100644
--- a/web/lib/pkgbasefuncs.inc.php
+++ b/web/lib/pkgbasefuncs.inc.php
@@ -860,13 +860,13 @@ function pkgbase_delete_comment($atype) {
 	$dbh = DB::connect();
 	$uid = uid_from_sid($_COOKIE["AURSID"]);
 	if (can_delete_comment($comment_id, $atype, $uid)) {
-		   $q = "UPDATE PackageComments ";
-		   $q.= "SET DelUsersID = ".$uid." ";
-		   $q.= "WHERE ID = ".intval($comment_id);
+		$q = "UPDATE PackageComments ";
+		$q.= "SET DelUsersID = ".$uid." ";
+		$q.= "WHERE ID = ".intval($comment_id);
 		$dbh->exec($q);
-		   return array(true, __("Comment has been deleted."));
+		return array(true, __("Comment has been deleted."));
 	} else {
-		   return array(false, __("You are not allowed to delete this comment."));
+		return array(false, __("You are not allowed to delete this comment."));
 	}
 }
 
-- 
2.0.1



More information about the aur-dev mailing list