[Mapbender-commits] r9875 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Feb 21 06:22:00 PST 2018


Author: armin11
Date: 2018-02-21 06:22:00 -0800 (Wed, 21 Feb 2018)
New Revision: 9875

Modified:
   trunk/mapbender/http/classes/class_syncCkan.php
Log:
Fix for syncing only one page - ckan records < 200

Modified: trunk/mapbender/http/classes/class_syncCkan.php
===================================================================
--- trunk/mapbender/http/classes/class_syncCkan.php	2018-02-21 08:37:25 UTC (rev 9874)
+++ trunk/mapbender/http/classes/class_syncCkan.php	2018-02-21 14:22:00 UTC (rev 9875)
@@ -413,7 +413,7 @@
 			$numberOfPackagesPerPage = 200;
 			if ($listOfFilteredDataCount->success == true) {
 				$numberOfPackages = $listOfFilteredData->result->count;
-				$numberOfPages = (integer)$numberOfPackages / $numberOfPackagesPerPage;
+				$numberOfPages = ceil((integer)$numberOfPackages / $numberOfPackagesPerPage);
 			} else {
 				$numberOfPages = 1;
 			}
@@ -591,7 +591,7 @@
 			$numberOfPackagesPerPage = 200;
 			if ($listOfFilteredDataCount->success == true) {
 				$numberOfPackages = $listOfFilteredDataCount->result->count;
-				$numberOfPages = (integer)$numberOfPackages / $numberOfPackagesPerPage;
+				$numberOfPages = ceil((integer)$numberOfPackages / $numberOfPackagesPerPage);
 			} else {
 				$numberOfPages = 1;
 			}
@@ -761,7 +761,7 @@
 			$numberOfPackagesPerPage = 200;
 			if ($listOfFilteredDataCount->success == true) {
 				$numberOfPackages = $listOfFilteredDataCount->result->count;
-				$numberOfPages = (integer)$numberOfPackages / $numberOfPackagesPerPage;
+				$numberOfPages = ceil((integer)$numberOfPackages / $numberOfPackagesPerPage);
 			} else {
 				$numberOfPages = 1;
 			}



More information about the Mapbender_commits mailing list