summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2014-01-22 05:33:24 +0100
committerSimon Green <sgreen@redhat.com>2014-01-22 05:33:24 +0100
commite9a97622fb5e08898b3b1e6cb88d1f649115a21f (patch)
treecaef01ec691ba310451b10c9b63fa9eb8f758e41
parent38c3cfbf27bf62e63e955cbab80783ea11b40b06 (diff)
downloadbugzilla-e9a97622fb5e08898b3b1e6cb88d1f649115a21f.tar.gz
bugzilla-e9a97622fb5e08898b3b1e6cb88d1f649115a21f.tar.xz
Bug 962416 - index.cgi crashes when using a Postgres database
r=justdave, a=justdave
-rwxr-xr-xindex.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/index.cgi b/index.cgi
index e52d01b03..032c6c371 100755
--- a/index.cgi
+++ b/index.cgi
@@ -48,11 +48,11 @@ if ($user->in_group('admin')) {
if ($user->id) {
my $dbh = Bugzilla->dbh;
$vars->{assignee_count} =
- $dbh->selectrow_array('SELECT COUNT(*) FROM bugs WHERE assigned_to = ?
- AND resolution = ""', undef, $user->id);
+ $dbh->selectrow_array("SELECT COUNT(*) FROM bugs WHERE assigned_to = ?
+ AND resolution = ''", undef, $user->id);
$vars->{reporter_count} =
- $dbh->selectrow_array('SELECT COUNT(*) FROM bugs WHERE reporter = ?
- AND resolution = ""', undef, $user->id);
+ $dbh->selectrow_array("SELECT COUNT(*) FROM bugs WHERE reporter = ?
+ AND resolution = ''", undef, $user->id);
$vars->{requestee_count} =
$dbh->selectrow_array('SELECT COUNT(DISTINCT bug_id) FROM flags
WHERE requestee_id = ?', undef, $user->id);