]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-online.php
Cache class rewritten to better convention
[mailer.git] / inc / extensions / ext-online.php
index f213def8a731a51d3a1622a1485b7633533552ae..92dd93dc548f40b105b4af6e57be01b95376824a 100644 (file)
@@ -55,14 +55,14 @@ case "register": // Do stuff when installation is running (modules.php?module=ad
 id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
 sid VARCHAR(32) NOT NULL DEFAULT '',
 ip VARCHAR(15) NOT NULL DEFAULT '',
-userid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
-refid BIGINT(20) UNSIGNED NOT NULL DEFAULT '0',
+userid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
+refid BIGINT(20) UNSIGNED NOT NULL DEFAULT 0,
 module VARCHAR(255) NOT NULL DEFAULT '',
 action VARCHAR(255) NOT NULL DEFAULT '',
 what VARCHAR(255) NOT NULL DEFAULT '',
 is_admin ENUM('Y','N') NOT NULL DEFAULT 'N',
 is_member ENUM('Y','N') NOT NULL DEFAULT 'N',
-timestamp VARCHAR(10) NOT NULL DEFAULT '0',
+timestamp VARCHAR(10) NOT NULL DEFAULT 0,
 PRIMARY KEY(id),
 KEY(userid),
 KEY(refid)
@@ -83,7 +83,7 @@ case "activate": // Do stuff when admin activates this extension
 
 case "deactivate": // Do stuff when admin deactivates this extension
        // SQL commands to run
-       $SQLs[] = "UPDATE "._MYSQL_PREFIX."_guest_menu SET visible='Y', locked='Y' WHERE action='online' LIMIT 1";
+       $SQLs[] = "UPDATE "._MYSQL_PREFIX."_guest_menu SET visible='N', locked='Y' WHERE action='online' LIMIT 1";
        break;
 
 case "update": // Update an extension