From 2f1a82628ca539b3eaad5f0b785071661e999b16 Mon Sep 17 00:00:00 2001 From: PhpMadman Date: Thu, 7 Nov 2013 09:00:00 +0100 Subject: [PATCH 1/3] // Fixes "Notice: Undefined index: nb_results in" --- .../default/template/controllers/search/helpers/view/view.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl index 406943226..062f71683 100644 --- a/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl @@ -29,7 +29,7 @@ $(function() { }); -{if !$nb_results} +{if !isset($nb_results)}

{l s='There are no results matching your query "%s".' sprintf=$query}

{else}

From 0a31ab820286eefa2f56563f5c9f88286ebc3c31 Mon Sep 17 00:00:00 2001 From: PhpMadman Date: Thu, 7 Nov 2013 14:51:05 +0100 Subject: [PATCH 2/3] added check for empty value --- .../default/template/controllers/search/helpers/view/view.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl index 062f71683..c938f795f 100644 --- a/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl @@ -29,7 +29,7 @@ $(function() { }); -{if !isset($nb_results)} +{if !isset($nb_results) && empty($nb_results)}

{l s='There are no results matching your query "%s".' sprintf=$query}

{else}

From c6676197e534fcb2ce1715ccec45bdb317d8ef69 Mon Sep 17 00:00:00 2001 From: PhpMadman Date: Thu, 7 Nov 2013 14:57:13 +0100 Subject: [PATCH 3/3] // better syntax --- .../default/template/controllers/search/helpers/view/view.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl index c938f795f..e113b2fd3 100644 --- a/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/search/helpers/view/view.tpl @@ -29,7 +29,7 @@ $(function() { }); -{if !isset($nb_results) && empty($nb_results)} +{if !isset($nb_results) || !$nb_results}

{l s='There are no results matching your query "%s".' sprintf=$query}

{else}