Browse Source

I think these could create issues with postGRE

Signed-off-by: emanuele <[email protected]>
emanuele 11 years ago
parent
commit
d6b61bba91
2 changed files with 3 additions and 3 deletions
  1. 1 1
      Sources/ModerationCenter.php
  2. 2 2
      Sources/PostModeration.php

+ 1 - 1
Sources/ModerationCenter.php

@@ -1137,7 +1137,7 @@ function ViewWatchedUsers()
 			$approve_query = ' AND m.id_board IN (' . implode(',', $approve_boards) . ')';
 		// Nada, zip, etc...
 		else
-			$approve_query = ' AND 0';
+			$approve_query = ' AND 1=0';
 	}
 
 	require_once($sourcedir . '/Subs-List.php');

+ 2 - 2
Sources/PostModeration.php

@@ -72,7 +72,7 @@ function UnapprovedPosts()
 		$approve_query = ' AND m.id_board IN (' . implode(',', $approve_boards) . ')';
 	// Nada, zip, etc...
 	else
-		$approve_query = ' AND 0';
+		$approve_query = ' AND 1=0';
 
 	// We also need to know where we can delete topics and/or replies to.
 	if ($context['current_view'] == 'topics')
@@ -322,7 +322,7 @@ function UnapprovedAttachments()
 	elseif (!empty($approve_boards))
 		$approve_query = ' AND m.id_board IN (' . implode(',', $approve_boards) . ')';
 	else
-		$approve_query = ' AND 0';
+		$approve_query = ' AND 1=0';
 
 	// Get together the array of things to act on, if any.
 	$attachments = array();