File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -320,11 +320,11 @@ public static function getLimitFilterFromArray($limit)
320
320
* @param string $categoryCode
321
321
* @param int $randomValue
322
322
* @param array $limit will be used if $randomValue is not set.
323
- * This array should contains 'start' and 'length' keys
323
+ * This array should contain 'start' and 'length' keys
324
324
*
325
325
* @return array
326
326
*/
327
- public static function getCoursesInCategory ($ categoryCode , $ randomValue = null , $ limit = [])
327
+ public static function getCoursesInCategory (string $ categoryCode , $ randomValue = null , $ limit = [])
328
328
{
329
329
$ tbl_course = Database::get_main_table (TABLE_MAIN_COURSE );
330
330
$ avoidCoursesCondition = self ::getAvoidCourseCondition ();
@@ -1990,7 +1990,7 @@ public static function getCatalogUrl(
1990
1990
$ action = isset ($ action ) ? Security::remove_XSS ($ action ) : $ requestAction ;
1991
1991
$ searchTerm = isset ($ _REQUEST ['search_term ' ]) ? Security::remove_XSS ($ _REQUEST ['search_term ' ]) : '' ;
1992
1992
$ keyword = isset ($ _REQUEST ['keyword ' ]) ? Security::remove_XSS ($ _REQUEST ['keyword ' ]) : '' ;
1993
- $ searchTag = $ _REQUEST ['search_tag ' ] ?? '' ;
1993
+ $ searchTag = $ _REQUEST ['search_tag ' ] ? Security:: remove_XSS ( $ _REQUEST [ ' search_tag ' ]) : '' ;
1994
1994
1995
1995
if ($ action === 'subscribe_user_with_password ' ) {
1996
1996
$ action = 'subscribe ' ;
You can’t perform that action at this time.
0 commit comments