Commit e9a97622 authored by Simon Green's avatar Simon Green

Bug 962416 - index.cgi crashes when using a Postgres database

r=justdave, a=justdave
parent 38c3cfbf
...@@ -48,11 +48,11 @@ if ($user->in_group('admin')) { ...@@ -48,11 +48,11 @@ if ($user->in_group('admin')) {
if ($user->id) { if ($user->id) {
my $dbh = Bugzilla->dbh; my $dbh = Bugzilla->dbh;
$vars->{assignee_count} = $vars->{assignee_count} =
$dbh->selectrow_array('SELECT COUNT(*) FROM bugs WHERE assigned_to = ? $dbh->selectrow_array("SELECT COUNT(*) FROM bugs WHERE assigned_to = ?
AND resolution = ""', undef, $user->id); AND resolution = ''", undef, $user->id);
$vars->{reporter_count} = $vars->{reporter_count} =
$dbh->selectrow_array('SELECT COUNT(*) FROM bugs WHERE reporter = ? $dbh->selectrow_array("SELECT COUNT(*) FROM bugs WHERE reporter = ?
AND resolution = ""', undef, $user->id); AND resolution = ''", undef, $user->id);
$vars->{requestee_count} = $vars->{requestee_count} =
$dbh->selectrow_array('SELECT COUNT(DISTINCT bug_id) FROM flags $dbh->selectrow_array('SELECT COUNT(DISTINCT bug_id) FROM flags
WHERE requestee_id = ?', undef, $user->id); WHERE requestee_id = ?', undef, $user->id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment