aboutsummaryrefslogtreecommitdiffstats
path: root/index.cgi
diff options
context:
space:
mode:
authorSimon Green <sgreen@redhat.com>2014-01-22 14:33:24 +1000
committerSimon Green <sgreen@redhat.com>2014-01-22 14:33:24 +1000
commite9a97622fb5e08898b3b1e6cb88d1f649115a21f (patch)
treecaef01ec691ba310451b10c9b63fa9eb8f758e41 /index.cgi
parent38c3cfbf27bf62e63e955cbab80783ea11b40b06 (diff)
downloadbugs-e9a97622fb5e08898b3b1e6cb88d1f649115a21f.tar
bugs-e9a97622fb5e08898b3b1e6cb88d1f649115a21f.tar.gz
bugs-e9a97622fb5e08898b3b1e6cb88d1f649115a21f.tar.bz2
bugs-e9a97622fb5e08898b3b1e6cb88d1f649115a21f.tar.xz
bugs-e9a97622fb5e08898b3b1e6cb88d1f649115a21f.zip
Bug 962416 - index.cgi crashes when using a Postgres database
r=justdave, a=justdave
Diffstat (limited to 'index.cgi')
-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);