[aida] Small bug in WebUser

Martin Polák nigol at nigol.cz
Sun Aug 7 19:45:20 CEST 2011


Hi Janko,

I found small bug in class WebUser. I'm using Aida6.3-beta1.8  on Pharo and in class WebUser there is method isLoggedIn implemented as follows:

WebUser>>isLoggedIn
	^self loginHistory notEmpty
		and: [(self loginHistory last at: 1) = #login]

but in class DailyCollection (which is class of loginHistory), there is no such method notEmpty. So I changed it little and now it works:

isLoggedIn
	^self loginHistory isEmpty not
		and: [(self loginHistory last at: 1) = #login]

Hope it helps.

Martin


More information about the Aida mailing list