Permalink
Browse files

Fixed a small paging problem in course search page

  • Loading branch information...
1 parent 225cffd commit 23c690efcec03c2b9d9a0d292c30715756e7ca9b patrickslee committed Oct 12, 2005
Showing with 4 additions and 0 deletions.
  1. +4 −0 course/search.php
View
@@ -34,6 +34,10 @@
} else if ($edit == "off") {
$USER->categoriessearchediting = false;
}
+ // If the edit mode we are leaving has higher per page than the one we are entering,
+ // with pages, chances are you will get a no courses found error. So when we are switching
+ // modes, set page to 0.
+ $page = 0;
}
$creatorediting = !empty($USER->categoriessearchediting);

0 comments on commit 23c690e

Please sign in to comment.