Forums / Developer / question about ezgeneraldigesthandler.php

question about ezgeneraldigesthandler.php

Author Message

Marko Žmak

Thursday 09 April 2009 2:21:54 am

I have noticed in eZ 3.10.1 that in ezgeneraldigesthandler.php at line 245 there is this code:

        if ( $http->hasPostVariable( 'ReceiveDigest_' . EZ_GENERALDIGEST_NOTIFICATION_HANDLER_ID ) &&
             $http->hasPostVariable( 'ReceiveDigest_' . EZ_GENERALDIGEST_NOTIFICATION_HANDLER_ID ) == '1' )

Why is the line:

$http->hasPostVariable( 'ReceiveDigest_' . EZ_GENERALDIGEST_NOTIFICATION_HANDLER_ID ) == '1'

here? Shouldn't this be:

$http->PostVariable( 'ReceiveDigest_' . EZ_GENERALDIGEST_NOTIFICATION_HANDLER_ID ) == '1'

so that the value of the post variable is checked and not it's exsistence?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth