diff --git a/Web/Models/Repositories/Videos.php b/Web/Models/Repositories/Videos.php index 30753371..63273349 100644 --- a/Web/Models/Repositories/Videos.php +++ b/Web/Models/Repositories/Videos.php @@ -58,7 +58,7 @@ class Videos else $paramValue != NULL ? $notNullParams+=["$paramName" => "$paramValue"] : NULL; - $result = $this->videos->where("name OR description LIKE ?", $query)->where("deleted", 0); + $result = $this->videos->where("CONCAT_WS(' ', name, description) LIKE ?", $query)->where("deleted", 0); $nnparamsCount = sizeof($notNullParams); if($nnparamsCount > 0) { diff --git a/Web/Presenters/templates/Search/Index.xml b/Web/Presenters/templates/Search/Index.xml index 828ffe62..4d629890 100644 --- a/Web/Presenters/templates/Search/Index.xml +++ b/Web/Presenters/templates/Search/Index.xml @@ -89,7 +89,7 @@ {if !is_null($_GET['address']) && $_GET['address'] != "" && $x->getPrivacySetting("page.info.read") > 1}
{_s_date_before}:
+ {if $type != "users"}
+
{_s_date_before}:
+ {else}
+
{_s_registered_before}:
+ {/if}
{_s_date_after}:
+ {if $type != "users"}
+
{_s_date_after}:
+ {else}
+
{_s_registered_after}:
+ {/if}
{_male}
-{_female}
-{_s_any}
+{_male}
+{_female}
+{_s_any}