[dev] Re: [cvs] commit: imp folders.php

Jon Parise jon@horde.org
Tue, 4 Jun 2002 01:11:50 -0400


On Mon, Jun 03, 2002 at 02:22:59PM -0700, Chuck Hagenbuch wrote:

> chuck       2002/06/03 14:22:55 PDT
> 
>   Modified files:
>     .                    folders.php 
>   Log:
>   don't try and empty a folder that already _is_ empty.

(isset($check->Nmsgs) && $check->Nmsgs > 0)

... could also be rewritten as ...

(!empty($check->Nmsgs))

I think that's a little more readable, considering the nature of the
test.
   
-- 
Jon Parise (jon@csh.rit.edu)  .  Information Technology (2001)
http://www.csh.rit.edu/~jon/  :  Computer Science House Member