mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 11:19:22 +02:00
Marketplaces improvements. Replaced @ operator(as Znote suggested) using assign-by-repherence. Fixed invalid argument supplied for foreach
errors when compare
in URL string was type of String
or did not match any of the items from the list.
This commit is contained in:
parent
b0e40e4ccd
commit
fa934147df
@ -3,7 +3,7 @@
|
|||||||
$server = $config['shop']['imageServer'];
|
$server = $config['shop']['imageServer'];
|
||||||
$imageType = $config['shop']['imageType'];
|
$imageType = $config['shop']['imageType'];
|
||||||
|
|
||||||
$compare = getValue(@$_GET['compare']);
|
$compare = &$_GET['compare'];
|
||||||
|
|
||||||
// If you are not comparing any items, present the list.
|
// If you are not comparing any items, present the list.
|
||||||
if (!$compare) {
|
if (!$compare) {
|
||||||
@ -95,7 +95,7 @@ if (!$compare) {
|
|||||||
<td>By</td>
|
<td>By</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
foreach ($offers as $o) {
|
foreach (($offers ? $offers : array()) as $o) {
|
||||||
$wtb = false;
|
$wtb = false;
|
||||||
if ($o['sale'] == 0) {
|
if ($o['sale'] == 0) {
|
||||||
$wtb = true;
|
$wtb = true;
|
||||||
@ -153,7 +153,7 @@ if (!$compare) {
|
|||||||
<td>Offer sold</td>
|
<td>Offer sold</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
foreach ($historyOffers as $o) {
|
foreach (($historyOffers ? $historyOffers : array()) as $o) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><img src="<?php echo "http://".$server."/".$o['item_id'].".".$imageType; ?>" alt="Item Image"></td>
|
<td><img src="<?php echo "http://".$server."/".$o['item_id'].".".$imageType; ?>" alt="Item Image"></td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user