Commit bf445a58cb604dc529eb6762ffafa6c2ef7d702a

Authored by David RENÉ
1 parent 75265fb5

[!] fix the the get_DB_id() function from web arguments to considerate the the e…

…mpty string "" as none DB_id
Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
web/web_arg_utils.anubis
... ... @@ -141,9 +141,12 @@ public define Maybe(DB_id)
141 141 {
142 142 not_found then failure,
143 143 found(value) then
  144 + println("get_mb_DB_id value '"+value+"'");
144 145 //Check if value is none which means no id provided
145 146 if value="none" then
146 147 success(none)
  148 + else if value = "" then
  149 + success(none)
147 150 else
148 151 //Now try to convert the string into Int to get the id
149 152 if decimal_scan(value) is
... ...