public function sGetAmountRestrictedArticles($articles,
$supplier) { if (!\
is_array($articles) &&
empty($supplier)) { return $this->
sGetAmountArticles();
} $extraConditions =
[];
if (!
empty($articles) && \
is_array($articles)) { $extraConditions[] =
$this->db->
quoteInto('ordernumber IN (?) ',
$articles);
} if (!
empty($supplier)) { $extraConditions[] =
$this->db->
quoteInto('s_articles.supplierID = ?',
$supplier);
} if (\
count($extraConditions)) {