From 00887942d34385d38ef645c078079995f43c8377 Mon Sep 17 00:00:00 2001 From: gRoussac Date: Wed, 6 Nov 2013 18:32:39 +0100 Subject: [PATCH] // preg_last_error not available on every stacks --- classes/Media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/Media.php b/classes/Media.php index 7ce172f56..6e2a62b47 100755 --- a/classes/Media.php +++ b/classes/Media.php @@ -109,7 +109,7 @@ class MediaCore // If the string is too big preg_replace return an error // In this case, we don't compress the content - if (preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR) + if (function_exists('preg_last_error') && preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR) { if (_PS_MODE_DEV_) error_log('ERROR: PREG_BACKTRACK_LIMIT_ERROR in function packJSinHTML');