Changeset 350 for trunk/app/controllers/ecourses_controller.php
- Timestamp:
- 03/26/08 16:42:32 (10 months ago)
- Files:
-
- 1 modified
-
trunk/app/controllers/ecourses_controller.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/controllers/ecourses_controller.php
r342 r350 136 136 } 137 137 } 138 /*** DELETE **/138 139 139 public function admin_delete($id) 140 140 { 141 $this->Ecourse->del($id); 142 143 $this->msgFlash('Course deleted', '/admin/ecourses/listing'); 141 if ( $this->Ecourse->del($id)) 142 { 143 $this->msgFlash('Course deleted', '/admin/ecourses/listing'); 144 } 144 145 } 145 146 }
