[trean] Patch for case when No categories are set

Michal michal@michal.no-ip.com
Thu Oct 10 01:54:17 2002


This message is in MIME format.

---------------------- multipart/mixed attachment
:-) ;-) |-) |-| 8-|

Forgot attach those...

Quoting Michal <michal@michal.no-ip.com>:

> Sorry about bad attachments, here are the good ones.
> 
> Michal
> 
> Quoting Michal <michal@michal.no-ip.com>:
> 
> > Hi all,
> > 
> > 
> > I found that new users with no trean categories set, can see link 'New
> > Bookmark', because /templates/browse/bookmarks.inc is displayed.
> > 
> > Also 'Add' menu icon was still displayed so here is patch for browse.php
> and
> 
> > /templates/menu/menu.inc which solve both things.
> > 
> > 
> > Michal
> > 
> > 
> 
> 
> 



---------------------- multipart/mixed attachment
LS0tIGJyb3dzZS5waHAJV2VkIE9jdCAgOSAwODo1NTo1MCAyMDAyCisrKyBicm93c2UucGhwCVdl
ZCBPY3QgIDkgMjA6Mjc6MDggMjAwMgpAQCAtMzgsMTUgKzM4LDIwIEBACiAkY2F0ZWdvcmllcyA9
IFRyZWFuOjpsaXN0Q2F0ZWdvcmllcygkY2F0ZWdvcnkpOwogJHNob3dDYXRlZ29yaWVzID0gYXJy
YXlfa2V5X2V4aXN0cygkY2F0ZWdvcnksICRjYXRlZ29yaWVzKTsKIAorLyogVGVzdCBpZiBhcmUg
YW55IHRyZWFuIGNhdGVnb3JpZXMgZGVmaW5lZCAqLworJHRlc3RjYXRlZ29yaWVzID0gVHJlYW46
Omxpc3RDYXRlZ29yaWVzKCctMScpOworJG5vQ2F0ZWdvcmllcyA9IGVtcHR5KCAkdGVzdGNhdGVn
b3JpZXMgKTsKKwogLyogRGlzcGxheSB0aGUgY2F0ZWdvcmllcyAqLwotaWYgKCRzaG93Q2F0ZWdv
cmllcykgewotICAgICRjYXRlZ29yaWVzID0gJGNhdGVnb3JpZXNbJGNhdGVnb3J5XTsKK2lmICgk
c2hvd0NhdGVnb3JpZXMgfHwgJG5vQ2F0ZWdvcmllcykgeworICAgIGlmICghJG5vQ2F0ZWdvcmll
cykKKyAg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