Permalink
Browse files

Bit more checking while creating new section

  • Loading branch information...
1 parent ad14a10 commit 5657e2df50ddeea48b2a250fc449c69644b968b0 martin committed Aug 15, 2002
Showing with 3 additions and 1 deletion.
  1. +3 −1 course/topics.php
View
@@ -148,7 +148,9 @@
$thissection->course = $course->id; // Create a new section structure
$thissection->section = $section;
$thissection->summary = "";
- $thissection->id = insert_record("course_sections", $thissection);
+ if (!$thissection->id = insert_record("course_sections", $thissection)) {
+ notify("Error inserting new topic!");
+ }
}
if (isediting($course->id)) {

0 comments on commit 5657e2d

Please sign in to comment.