I was saying that they did the same thing, but there is a very subtle difference. Your second script uses $ulevel instead of $level.
The only reason I commented is that they looked the same to me, and IMO the else is cleaner than a redundant if check.
|