Show
Ignore:
Timestamp:
03/26/08 16:42:32 (10 months ago)
Author:
aarkerio
Message:

Improvements on vclassrooms

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/controllers/ecourses_controller.php

    r342 r350  
    136136    } 
    137137 } 
    138   /*** DELETE  **/  
     138  
    139139 public function admin_delete($id) 
    140140 { 
    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    } 
    144145 }  
    145146}