diff options
author | Yorhel <git@yorhel.nl> | 2009-07-17 15:21:13 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2009-07-17 15:21:13 +0200 |
commit | f292b4b22df4b035de00e72a0c135e0e5756ece2 (patch) | |
tree | 34a8fdafe28221cf2b0f9b873e613039f12a685c | |
parent | d8a3322480dc37314015d6fad633223f5827066e (diff) |
Check for the existance of QARG instead of it's value
-rw-r--r-- | lib/POE/Component/Pg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/POE/Component/Pg.pm b/lib/POE/Component/Pg.pm index 27fb9b2..79687da 100644 --- a/lib/POE/Component/Pg.pm +++ b/lib/POE/Component/Pg.pm @@ -263,7 +263,7 @@ sub dbi_canread { if($@) { sendevent \@_, 'error', $item->[QACT], $@, $item->[QQUERY], $item->[QPARAM], $item->[QSESID], $item->[QARG]; } elsif($item->[QEVENT]) { - $_[KERNEL]->post($item->[QSESID], $item->[QEVENT], $num, $res, $item->[QARG] ? $item->[QARG] : ()); + $_[KERNEL]->post($item->[QSESID], $item->[QEVENT], $num, $res, exists $item->[QARG] ? $item->[QARG] : ()); } $_[KERNEL]->refcount_decrement($item->[QSESID], 'P:C:PG'); |