From 49af6ab171f5e9af7fb4254fd53bfa46b0a59c21 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 20 Mar 2018 11:08:08 +0100 Subject: [PATCH] make sure list of converters is an array, start new version 1.2.9 --- SeedDMS_Preview/Preview/Base.php | 6 +++++- SeedDMS_Preview/package.xml | 22 +++++++++++++++++++--- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/SeedDMS_Preview/Preview/Base.php b/SeedDMS_Preview/Preview/Base.php index 4d6b9cf1f..d00003379 100644 --- a/SeedDMS_Preview/Preview/Base.php +++ b/SeedDMS_Preview/Preview/Base.php @@ -55,6 +55,7 @@ class SeedDMS_Preview_Base { $this->previewDir = $previewDir; } $this->timeout = intval($timeout); + $this->converters = array(); } /* }}} */ static function execWithTimeout($cmd, $timeout=5) { /* {{{ */ @@ -109,7 +110,10 @@ class SeedDMS_Preview_Base { * and the value is the command to be called for creating the preview */ function setConverters($arr) { /* {{{ */ - $this->converters = $arr; + if(is_array($arr)) + $this->converters = $arr; + else + $this->converters = array(); } /* }}} */ /** diff --git a/SeedDMS_Preview/package.xml b/SeedDMS_Preview/package.xml index 2afd6da7b..9e39935d3 100644 --- a/SeedDMS_Preview/package.xml +++ b/SeedDMS_Preview/package.xml @@ -11,10 +11,10 @@ uwe@steinmann.cx yes - 2018-03-08 + 2018-03-20 - 1.2.8 + 1.2.9 1.2.0 @@ -23,7 +23,7 @@ GPL License -preview is also created if SeedDMS_Core_DocumentContent has a child class +make sure list of converters is always an array @@ -370,5 +370,21 @@ mod_xsendfile if available execWithTimeout() reads data from stderr and returns it together with stdout in array + + 2018-03-08 + + + 1.2.8 + 1.2.0 + + + stable + stable + + GPL License + +preview is also created if SeedDMS_Core_DocumentContent has a child class + +