Warning Undefined index search in bp-course-actions.php

Home Forums Legacy Support Support queries Other issues Warning Undefined index search in bp-course-actions.php

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #55665
    eclipsedev
    Spectator
    Hello, I found a minor issue within the bp-course-actions.php of vibe-course-module plugin. Within the bp_course_admin_search_course_students function the $_GET['search'] is utilized without checking if $_GET even has an index of search causing the error; PHP Notice:  Undefined index: search in vibe-course-module/includes/bp-course-actions.php To resolve please check and default to empty string, so instead of just using '$_GET['search']' instead do an inline conditional check; (isset($_GET['search'])?$_GET['search']:'') Thanks  
    #55719
    H.K. Latiyan
    Participant
    Thanks for the suggestion, we will add this in our next update of vibe course module plugin. Trello: https://trello.com/c/AmcM9GY2
    #55831
    eclipsedev
    Spectator
    Thanks Latiyan
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Warning Undefined index search in bp-course-actions.php’ is closed to new replies.