// preg_last_error not available on every stacks

This commit is contained in:
gRoussac committed 2013-11-06 18:32:39 +01:00
1 parent afe6c9bc6f
commit 00887942d3
1 file changed
+1 -1
+1 -1
View File
@@ -109,7 +109,7 @@ class MediaCore
// If the string is too big preg_replace return an error // If the string is too big preg_replace return an error
// In this case, we don't compress the content // 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_) if (_PS_MODE_DEV_)
error_log('ERROR: PREG_BACKTRACK_LIMIT_ERROR in function packJSinHTML'); error_log('ERROR: PREG_BACKTRACK_LIMIT_ERROR in function packJSinHTML');