From 0357cd6225498b7b0cbbc71a9da1ed536a2d3603 Mon Sep 17 00:00:00 2001 From: Karel Klic Date: Wed, 21 Apr 2010 15:37:51 +0200 Subject: Bugzilla login/password emptiness check uses 'or' instead of 'and' --- lib/Plugins/Bugzilla.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index 0f8a1c22..18df7216 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -610,10 +610,10 @@ std::string CReporterBugzilla::Report(const map_crash_data_t& pCrashData, NoSSLVerify = m_bNoSSLVerify; } - if ((Login == "") && (Password == "")) + if ((Login == "") || (Password == "")) { VERB3 log("Empty login and password"); - throw CABRTException(EXCEP_PLUGIN, _("Empty login and password.\nPlease check "PLUGINS_CONF_DIR"/Bugzilla.conf.")); + throw CABRTException(EXCEP_PLUGIN, _("Empty login or password.\nPlease check "PLUGINS_CONF_DIR"/Bugzilla.conf.")); } const std::string& component = get_crash_data_item_content(pCrashData, FILENAME_COMPONENT); -- cgit