diff --git a/module/VuFindConsole/src/VuFindConsole/Controller/UtilController.php b/module/VuFindConsole/src/VuFindConsole/Controller/UtilController.php index 245a532d5faa7c4a2cc2422bf654750af8a97fb2..e9eadd6324db919e79b67c901a80c0f500c4815b 100644 --- a/module/VuFindConsole/src/VuFindConsole/Controller/UtilController.php +++ b/module/VuFindConsole/src/VuFindConsole/Controller/UtilController.php @@ -677,11 +677,11 @@ class UtilController extends AbstractBase /** * Abstract delete method. * - * @param string $tableName Table to operate on. - * @param string $successString String for reporting success. - * @param string $failString String for reporting failure. - * @param int $minAge Minimum age allowed for expiration (also used - * as default value). + * @param string $tableName Table to operate on. + * @param string $successString String for reporting success. + * @param string $failString String for reporting failure. + * @param int|float $minAge Minimum age allowed for expiration in days + * (also used as default value). * * @return mixed */ @@ -691,7 +691,7 @@ class UtilController extends AbstractBase $request = $this->getRequest(); // Use command line value as expiration age, or default to $minAge. - $daysOld = intval($request->getParam('daysOld', $minAge)); + $daysOld = floatval($request->getParam('daysOld', $minAge)); // Use command line values for batch size and sleep time if specified. $batchSize = $request->getParam('batch', 1000);