mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.HomeBudget ternary operator error fix
git-svn-id: svn://ultimatepp.org/upp/trunk@3317 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
75ff75b17c
commit
6ab7014371
1 changed files with 1 additions and 1 deletions
|
|
@ -755,7 +755,7 @@ void HomeBudget::UpdateValue()
|
|||
{
|
||||
SQL & Select(DEFVALUE, PM).From(CATEGORIES).Where(ID == money.Get(CAT_ID));
|
||||
Value v = SQL.Fetch() ? SQL[0] : Value(0);
|
||||
Value s = SQL.Fetch() ? SQL[1] : -1;
|
||||
Value s = SQL.Fetch() ? SQL[1] : Value(-1);
|
||||
|
||||
if(IsNull(money.Get(VALUE)))
|
||||
money.Set(VALUE, v);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue