From: timriker Date: Thu, 21 Nov 2002 21:22:49 +0000 (+0000) Subject: don't bother looking it up if missing arguments X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=06d166e10348824d7e18fe847b39813e1fe43508;p=infobot.git don't bother looking it up if missing arguments git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@670 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/dbi.pl b/blootbot/src/dbi.pl index 3ead58a..e205a4e 100644 --- a/blootbot/src/dbi.pl +++ b/blootbot/src/dbi.pl @@ -274,8 +274,6 @@ sub dbSet { return; } - my $result = &dbGet($table, join(',', keys %{$phref}), $where); - my(@keys,@vals); foreach (keys %{$href}) { push(@keys, $_); @@ -287,6 +285,8 @@ sub dbSet { return; } + my $result = &dbGet($table, join(',', keys %{$phref}), $where); + my $query; if (defined $result) { my @keyval;