syntax fixes
This commit is contained in:
parent
8e748aaa90
commit
1ce33aa89a
13 changed files with 45 additions and 43 deletions
|
|
@ -30,7 +30,11 @@ func (db *DB) GetAllSections(username string, admin bool) (sections core.Section
|
|||
}
|
||||
p, err := db.getPage(k, username)
|
||||
if err == nil {
|
||||
s := k[:strings.Index(k, "/")]
|
||||
i := strings.Index(k, "/")
|
||||
if i == -1 {
|
||||
return nil
|
||||
}
|
||||
s := k[:i]
|
||||
if _, ok := m[s]; !ok {
|
||||
m[s] = core.UpdatedPages{}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue