suppress error msg caused by php bug

This commit is contained in:
Georg Ehrke 2014-02-14 11:23:39 +01:00
parent 4b84e3a7e8
commit f62f1658ce
4 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
//both, libreoffice backend and php fallback, need imagick
if (extension_loaded('imagick') && count(\Imagick::queryFormats("PDF")) === 1) {
if (extension_loaded('imagick') && count(@\Imagick::queryFormats("PDF")) === 1) {
$isShellExecEnabled = \OC_Helper::is_function_enabled('shell_exec');
// LibreOffice preview is currently not supported on Windows

View File

@ -7,7 +7,7 @@
*/
namespace OC\Preview;
if (extension_loaded('imagick') && count(\Imagick::queryFormats("PDF")) === 1) {
if (extension_loaded('imagick') && count(@\Imagick::queryFormats("PDF")) === 1) {
class PDF extends Provider {

View File

@ -7,7 +7,7 @@
*/
namespace OC\Preview;
if (extension_loaded('imagick') && count(\Imagick::queryFormats("SVG")) === 1) {
if (extension_loaded('imagick') && count(@\Imagick::queryFormats("SVG")) === 1) {
class SVG extends Provider {

View File

@ -22,7 +22,7 @@ class Unknown extends Provider {
$svgPath = substr_replace($path, 'svg', -3);
if (extension_loaded('imagick') && file_exists($svgPath) && count(\Imagick::queryFormats("SVG")) === 1) {
if (extension_loaded('imagick') && file_exists($svgPath) && count(@\Imagick::queryFormats("SVG")) === 1) {
// http://www.php.net/manual/de/imagick.setresolution.php#85284
$svg = new \Imagick();