]> git.mxchange.org Git - mailer.git/commitdiff
Extension de-/activation fixed in surfbar
authorRoland Häder <roland@mxchange.org>
Sat, 6 Sep 2008 19:11:18 +0000 (19:11 +0000)
committerRoland Häder <roland@mxchange.org>
Sat, 6 Sep 2008 19:11:18 +0000 (19:11 +0000)
inc/extensions/ext-surfbar.php

index 661dca0ea0f84573e3a4f880635794002e3e0ae7..862fd1459857498425afddbd6657483ce724df30 100644 (file)
@@ -143,12 +143,12 @@ case "remove": // Do stuff when removing extension
 
 case "activate": // Do stuff when admin activates this extension
        // SQL commands to run
-       $SQLs[] = "UPDATE `"._MYSQL_PREFIX."_member_menu` SET `visible`='Y', `locked`='N' WHERE `what`='surfbar' LIMIT 1";
+       $SQLs[] = "UPDATE `"._MYSQL_PREFIX."_member_menu` SET `visible`='Y', `locked`='N' WHERE `action`='surfbar' LIMIT 3";
        break;
 
 case "deactivate": // Do stuff when admin deactivates this extension
        // SQL commands to run
-       $SQLs[] = "UPDATE `"._MYSQL_PREFIX."_member_menu` SET `locked`='Y' WHERE `what` = 'surfbar' LIMIT 1";
+       $SQLs[] = "UPDATE `"._MYSQL_PREFIX."_member_menu` SET `locked`='Y' WHERE `action` = 'surfbar' LIMIT 3";
        break;
 
 case "update": // Update an extension