Changeset 1061

Show
Ignore:
Timestamp:
10/17/09 11:42:33 (4 years ago)
Author:
d0nut
Message:

more fixes

Location:
g-map
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • g-map/files/lib/page/MapPage.class.php

    r1029 r1061  
    6262                        ON              ug.groupID = g.groupID 
    6363                        AND             ug.userID = ".intval(WCF::getUser()->userID)." 
    64                         WHERE           groupID > 2 
     64                        WHERE           g.groupID > 2 
    6565                        AND             ( 
    6666                                        SELECT  COUNT( userID ) 
    6767                                        FROM    wcf".WCF_N."_user_to_groups user_to_groups 
    68                                         WHERE   wcf".WCF_N."_group.groupID = user_to_groups.groupID 
     68                                        WHERE   g.groupID = user_to_groups.groupID 
    6969                                        ) > 0;"; 
    7070 
  • g-map/install.sql

    r1029 r1061  
    1 CREATE TABLE IF NOT EXISTS wcf1_gmap ( 
     1CREATE TABLE wcf1_gmap ( 
    22        mapID int(11) UNSIGNED NOT NULL auto_increment, 
    33        userID int(11) UNSIGNED NOT NULL DEFAULT 0, 
     
    1010) ENGINE=MyISAM DEFAULT CHARSET=utf8; 
    1111 
    12  
    13 ALTER TABLE wcf1_user ADD coords point NULL; 
    14 ALTER TABLE wcf1_user ADD SPATIAL KEY coords (pt); 
  • g-map/package.xml

    r1060 r1061  
    5151                <files>files.tar</files> 
    5252                <useroptions>useroptions.xml</useroptions> 
    53                 <sql>install.sql</sql> 
    54                 <cronjobs>cronjobs.xml</cronjobs> 
    5553        </instructions> 
    5654</package>