fix prepared statement combination
This commit is contained in:
parent
564ddd891d
commit
3d52203d94
@ -58,10 +58,11 @@ class d3_dev_oxorder extends d3_dev_oxorder_parent
|
||||
{
|
||||
$orderNr = (int) Registry::getRequest()->getRequestEscapedParameter('d3ordernr');
|
||||
$sWhere = 1;
|
||||
$parameters = [];
|
||||
if ($orderNr) {
|
||||
$sWhere = ' oxordernr = ? ';
|
||||
$parameters[] = $orderNr;
|
||||
}
|
||||
$parameters = [$orderNr];
|
||||
|
||||
$sSelect = "SELECT oxid FROM ".oxNew(Order::class)->getViewName()." WHERE ".
|
||||
"oxuserid != '' AND ".
|
||||
|
Loading…
Reference in New Issue
Block a user