summaryrefslogtreecommitdiffstats
path: root/admin/additem.php
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2020-05-08 11:57:16 +0000
committerDominique Martinet <asmadeus@codewreck.org>2020-05-08 11:57:16 +0000
commit54a107b858aa8ab21b1d0cc755b628f31e672200 (patch)
tree411e06e331c02510157ece44193e1cf964f3ba4b /admin/additem.php
parent2462b0038facc10aa39af86913ddf370d976c613 (diff)
additem: fix warning with empty foreach
Diffstat (limited to 'admin/additem.php')
-rw-r--r--admin/additem.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/additem.php b/admin/additem.php
index 1afa2ce..b9cb67f 100644
--- a/admin/additem.php
+++ b/admin/additem.php
@@ -405,7 +405,7 @@ class Add_Item extends EQdkp_Admin
}
$db->free_result($result);
- foreach($buyer_source as $buyer_name) {
+ if ($buyer_source) foreach($buyer_source as $buyer_name) {
$tpl->assign_block_vars('buyers_row', array(
'VALUE' => $buyer_name,
'OPTION' => $buyer_name)