diff options
author | mkanat%bugzilla.org <> | 2007-12-13 08:44:11 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2007-12-13 08:44:11 +0000 |
commit | 5c779ad57796cf6c1f88efe2f3b88b1b96144004 (patch) | |
tree | 8dc4f38adfec19d98656640d00c5c5851d38579e /Bugzilla/User | |
parent | 25de3add9dedd00d20ff9e35a5d20f3163ee9437 (diff) | |
download | bugs-5c779ad57796cf6c1f88efe2f3b88b1b96144004.tar bugs-5c779ad57796cf6c1f88efe2f3b88b1b96144004.tar.gz bugs-5c779ad57796cf6c1f88efe2f3b88b1b96144004.tar.bz2 bugs-5c779ad57796cf6c1f88efe2f3b88b1b96144004.tar.xz bugs-5c779ad57796cf6c1f88efe2f3b88b1b96144004.zip |
Bug 408037: [Oracle] Running checksetup.pl twice doesn't work
Patch By Xiaoou Wu <xiaoou.wu@oracle.com> r=mkanat, a=mkanat
Diffstat (limited to 'Bugzilla/User')
-rw-r--r-- | Bugzilla/User/Setting.pm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Bugzilla/User/Setting.pm b/Bugzilla/User/Setting.pm index 6387883c6..f13bfe972 100644 --- a/Bugzilla/User/Setting.pm +++ b/Bugzilla/User/Setting.pm @@ -233,9 +233,8 @@ sub set_default { sub _setting_exists { my ($setting_name) = @_; my $dbh = Bugzilla->dbh; - my $sth = $dbh->prepare("SELECT name FROM setting WHERE name = ?"); - $sth->execute($setting_name); - return ($sth->rows) ? 1 : 0; + return $dbh->selectrow_arrayref( + "SELECT 1 FROM setting WHERE name = ?", undef, $setting_name) || 0; } |