Browse Source

type error on bulk delete members - Thanks Tyris for the fix!

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
fa61e45e97
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Sources/ManageMembers.php
  2. 1 1
      Sources/Subs-Members.php

+ 1 - 1
Sources/ManageMembers.php

@@ -407,7 +407,7 @@ function ViewMemberlist()
 		}
 
 		// Construct the where part of the query.
-		$where = empty($query_parts) ? '1' : implode('
+		$where = empty($query_parts) ? '1=1' : implode('
 			AND ', $query_parts);
 	}
 	else

+ 1 - 1
Sources/Subs-Members.php

@@ -1262,7 +1262,7 @@ function list_getNumMembers($where, $where_params = array())
 	global $smcFunc, $modSettings;
 
 	// We know how many members there are in total.
-	if (empty($where) || $where == '1')
+	if (empty($where) || $where == '1=1')
 		$num_members = $modSettings['totalMembers'];
 
 	// The database knows the amount when there are extra conditions.