do not pop service from services in convert(), use end()

This commit is contained in:
Uwe Steinmann 2021-10-16 17:46:03 +02:00
parent e9ae9cce34
commit d422927f87

View File

@ -62,7 +62,7 @@ class SeedDMS_ConversionMgr {
*/
public function convert($file, $from, $to, $target=null, $params=array()) {
if(isset($this->services[$from][$to])) {
$service = array_pop($this->services[$from][$to]);
$service = end($this->services[$from][$to]);
return $service->convert($file, $target, $params);
}
}