Skip to content

Instantly share code, notes, and snippets.

View alpharder's full-sized avatar
:shipit:

Alex Bolshakov alpharder

:shipit:
View GitHub Profile
diff --git a/app/functions/fn.catalog.php b/app/functions/fn.catalog.php
index cd7b966..9a85478 100644
--- a/app/functions/fn.catalog.php
+++ b/app/functions/fn.catalog.php
@@ -5894,7 +5894,12 @@ function fn_get_products($params, $items_per_page = 0, $lang_code = CART_LANGUAG
$params = array_merge($default_params, $params);
- if ((empty($params['pname']) || $params['pname'] != 'Y') && (empty($params['pshort']) || $params['pshort'] != 'Y') && (empty($params['pfull']) || $params['pfull'] != 'Y') && (empty($params['pkeywords']) || $params['pkeywords'] != 'Y') && !empty($params['q'])) {
+ if ((empty($params['pname']) || $params['pname'] != 'Y')
diff --git a/app/functions/fn.control.php b/app/functions/fn.control.php
index 9510cae..4e47ca4 100644
--- a/app/functions/fn.control.php
+++ b/app/functions/fn.control.php
@@ -38,19 +38,26 @@ define('GET_POST_CONTROLLERS', 3);
function fn_set_hook($hook_name = NULL, &$arg1 = NULL, &$arg2 = NULL, &$arg3 = NULL, &$arg4 = NULL, &$arg5 = NULL, &$arg6 = NULL, &$arg7 = NULL, &$arg8 = NULL, &$arg9 = NULL, &$arg10 = NULL, &$arg11 = NULL, &$arg12 = NULL, &$arg13 = NULL, &$arg14 = NULL, &$arg15 = NULL)
{
static $callable_functions;
- static $hooks_already_sorted;
- static $edition_acronym;