diff --git a/README.md b/README.md index 7f126b4d4..0618855e5 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@
-
+
@@ -89,7 +89,7 @@ Please don't disclose security vulnerabilities publicly. If you find any securit
### Documentation & Demo
#### QloApps Documentation
-[https://qloapps.com/qlo-reservation-system](https://qloapps.com/qlo-reservation-system)
+[https://docs.qloapps.com](https://docs.qloapps.com)
#### QloApps Demo
**Link** : https://demo.qloapps.com
**username** : demo@demo.com
diff --git a/admin/ajax_products_list.php b/admin/ajax_products_list.php
index 2971bdd42..6f0c3dd30 100644
--- a/admin/ajax_products_list.php
+++ b/admin/ajax_products_list.php
@@ -75,7 +75,7 @@ $sqlJoin =' LEFT JOIN `'._DB_PREFIX_.'product_lang` pl ON (pl.`id_product` = p.`
$sqlWhere = ' WHERE (pl.name LIKE \'%'.pSQL($query).'%\' OR p.reference LIKE \'%'.pSQL($query).'%\')'.
(!empty($excludeIds) ? ' AND p.id_product NOT IN ('.$excludeIds.') ' : ' ').
- (!empty($excludePackItself) ? ' AND p.id_product <> '.$excludePackItself.' ' : ' ').
+ (!empty($excludePackItself) ? ' AND p.id_product <> '.(int) $excludePackItself.' ' : ' ').
($excludeVirtuals ? 'AND NOT EXISTS (SELECT 1 FROM `'._DB_PREFIX_.'product_download` pd WHERE (pd.id_product = p.id_product))' : '').
($exclude_packs ? 'AND (p.cache_is_pack IS NULL OR p.cache_is_pack = 0)' : '').
($bookingProduct ? 'AND p.`booking_product` = '.(int) $bookingProduct : '');
@@ -96,7 +96,7 @@ $sql = $sqlSelect.' '.$sqlFrom.' '.$sqlJoin.' '.$sqlWhere.' '.$sqlGroupBy;
$items = Db::getInstance()->executeS($sql);
-if ($items && ($excludeIds || strpos($_SERVER['HTTP_REFERER'], 'AdminScenes') !== false)) {
+if ($items && ($excludeIds || (isset($_SERVER['HTTP_REFERER']) && Tools::strpos($_SERVER['HTTP_REFERER'], 'AdminScenes') !== false))) {
foreach ($items as $item) {
$item['name'] = str_replace('|', '|', $item['name']);
echo trim($item['name']).(!empty($item['reference']) ? ' (ref: '.$item['reference'].')' : '').'|'.(int)($item['id_product'])."\n";
@@ -151,7 +151,7 @@ if ($items && ($excludeIds || strpos($_SERVER['HTTP_REFERER'], 'AdminScenes') !=
'id' => (int)($item['id_product']),
'name' => $item['name'],
'ref' => (!empty($item['reference']) ? $item['reference'] : ''),
- 'image' => str_replace('http://', Tools::getShopProtocol(), $context->link->getImageLink($item['link_rewrite'], $item['id_image'], 'home_default')),
+ 'image' => $item['id_image'] ? str_replace('http://', Tools::getShopProtocol(), $context->link->getImageLink($item['link_rewrite'], $item['id_image'], 'home_default')) : false,
);
array_push($results, $product);
}
diff --git a/admin/themes/default/template/controllers/carts/helpers/view/view.tpl b/admin/themes/default/template/controllers/carts/helpers/view/view.tpl
index 2fd68d44f..4da11944d 100644
--- a/admin/themes/default/template/controllers/carts/helpers/view/view.tpl
+++ b/admin/themes/default/template/controllers/carts/helpers/view/view.tpl
@@ -67,7 +67,7 @@
{l s='Created on:'} {dateFormat date=$cart_order.date_add}
{else}
{l s='Please note that position numbering starts from 0. A position of 0 means room type will be displayed at the topmost position.'}
l('Share your experience with your friends!'); ?>
-