Pagination works with minor error

"Notice: Undefined index: pagenum in /Users/Akumi/PhpstormProjects/Debug DB Pagination/search.php on line 41"