@@ -381,14 +381,17 @@ class ElementDispatcher { | |||
break; | |||
case 'buy': | |||
// synopsis: | |||
// buy:name:price | |||
// TODO: become currency aware (now EURO is hardcoded) | |||
$new = ''; | |||
if(count($request)>=2) { | |||
if (count($request)>=2) { | |||
$name=$request[1]; | |||
} else { | |||
$name ="item"; | |||
$name="item"; | |||
} | |||
if(count($request)>=3) { | |||
if (count($request)>=3) { | |||
$price=$request[2]; | |||
} else { | |||
$price=1.0; |