The official website for the open-source compatibility layer fpPS4
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fixed issue with cusa searching not working

+5 -1
+5 -1
public_html/scripts/search.php
··· 47 47 /// if there is an search query in the request 48 48 if (!empty($searchQuery)) { 49 49 $searchQuery = strtolower($searchQuery); 50 - $conditions[] = strpos($searchQuery, 'cusa') ? "cusaCode LIKE :searchQuery" : "title LIKE :searchQuery"; 50 + if (strpos($searchQuery, 'cusa') !== false) { 51 + $conditions[] = "cusaCode LIKE :searchQuery"; 52 + } else { 53 + $conditions[] = "title LIKE :searchQuery"; 54 + } 51 55 $params[':searchQuery'] = $searchQuery . '%'; 52 56 } 53 57