Permalink
Browse files

Ensureing the parent class uninstall function rreturns true before at…

…tempting to remove tables
  • Loading branch information...
pointybeard committed Jul 11, 2010
1 parent 0749760 commit 6aee2a054f082c7d66e8ae9e02cdcf2a9f89bcf2
Showing with 6 additions and 1 deletion.
  1. +6 −1 extension.driver.php
View
@@ -13,7 +13,12 @@ public function about(){
}
public function uninstall(){
- Symphony::Database()->query("DROP TABLE `tbl_fields_selectbox_link`");
+ if(parent::uninstall() == true){
+ Symphony::Database()->query("DROP TABLE `tbl_fields_selectbox_link`");
+ return true;
+ }
+
+ return false;
}
public function update($previousVersion){

0 comments on commit 6aee2a0

Please sign in to comment.