mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
2010-11-26 Miguel de Dios <miguel.dedios@artica.es>
* operation/agentes/exportdata.php: fixed the work_period to extract data when the default work_period is greater than period between the date to start and date to end. Fixes: #3119467 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3638 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
2f55896783
commit
88f94ce7ef
@ -1,3 +1,11 @@
|
|||||||
|
2010-11-26 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* operation/agentes/exportdata.php: fixed the work_period to extract
|
||||||
|
data when the default work_period is greater than period between the
|
||||||
|
date to start and date to end.
|
||||||
|
|
||||||
|
Fixes: #3119467
|
||||||
|
|
||||||
2010-11-26 Dario Rodriguez <dario.rodriguez@artica.es>
|
2010-11-26 Dario Rodriguez <dario.rodriguez@artica.es>
|
||||||
|
|
||||||
* extensions/plugin_registration.php: Fixed a bug related with html
|
* extensions/plugin_registration.php: Fixed a bug related with html
|
||||||
|
@ -171,12 +171,15 @@ if (!empty ($export_btn) && !empty ($module)) {
|
|||||||
foreach ($module as $selected) {
|
foreach ($module as $selected) {
|
||||||
|
|
||||||
$output = "";
|
$output = "";
|
||||||
$work_period = 120000;
|
$work_period = 120000;
|
||||||
|
if ($work_period > $period) {
|
||||||
|
$work_period = $period;
|
||||||
|
}
|
||||||
|
|
||||||
$work_end = $end - $period + $work_period;
|
$work_end = $end - $period + $work_period;
|
||||||
//Buffer to get data, anyway this will report a memory exhaustin
|
//Buffer to get data, anyway this will report a memory exhaustin
|
||||||
|
|
||||||
while ( $work_end < $end) {
|
while ($work_end <= $end) {
|
||||||
$work_end = $work_end + $work_period;
|
$work_end = $work_end + $work_period;
|
||||||
|
|
||||||
$data = array (); // Reinitialize array for each module chunk
|
$data = array (); // Reinitialize array for each module chunk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user