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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 00:41:09
Script start
Timing: Jan 31 2025 00:41:09
Module start 'layout'
Timing: Jan 31 2025 00:41:09
Module start 'content'
Timing: Jan 31 2025 00:41:09
Module end 'content'
Timing: Jan 31 2025 00:41:09
Script end

Main resources:

Total runtime0.0240 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.2656151.2266
Module start 'layout' 0.00480.0037 739.4922220.7188
Module start 'content' 0.00850.0138 960.2109997.8672
Module end 'content' 0.02230.0016 1,958.078129.9922
Script end 0.0239  1,988.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.3098140.0002
Check MTime0.00114.4290140.0001
Mysql Total
Database connection0.00072.945110.0007
Mysqli_queries0.00218.811330.0007
Looping result0.00000.045810.0000
Template Total0.00125.010.0012
Template load0.00093.566710.0009
Template processing0.00031.402410.0003
Override
Cache load0.00062.452710.0006
General
dbfile0.00114.663880.0001
String conversion0.00000.029840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs