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:
mdtrooper 2010-11-26 12:44:18 +00:00
parent 3a38bbdb4b
commit 5186bf49f4
2 changed files with 13 additions and 2 deletions

View File

@ -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>
* extensions/plugin_registration.php: Fixed a bug related with html

View File

@ -171,12 +171,15 @@ if (!empty ($export_btn) && !empty ($module)) {
foreach ($module as $selected) {
$output = "";
$work_period = 120000;
$work_period = 120000;
if ($work_period > $period) {
$work_period = $period;
}
$work_end = $end - $period + $work_period;
//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;
$data = array (); // Reinitialize array for each module chunk