aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-06-28 18:45:51 +0000
committermistic100 <mistic@piwigo.org>2012-06-28 18:45:51 +0000
commit51c02b0af93e2c93b833907f23a73c623eb852c9 (patch)
tree16e1e9fdec02abf87c6a7652aa57e0a5063d6b4e /admin/include
parentbea7ce8a8533b32dbd7e2a38cd24cfbedbd09ce0 (diff)
check if ilog() exists before using it, allowing the use the class outer i.php
git-svn-id: http://piwigo.org/svn/trunk@16146 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/image.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/include/image.class.php b/admin/include/image.class.php
index 60911b39f..4eeceeb51 100644
--- a/admin/include/image.class.php
+++ b/admin/include/image.class.php
@@ -625,10 +625,10 @@ class image_ext_imagick implements imageInterface
$exec .= ' "'.realpath($dest['dirname']).'/'.$dest['basename'].'" 2>&1';
@exec($exec, $returnarray);
- ilog($exec);
+ if (function_exists('ilog')) ilog($exec);
if (is_array($returnarray) && (count($returnarray)>0) )
{
- ilog('ERROR', $returnarray);
+ if (function_exists('ilog')) ilog('ERROR', $returnarray);
foreach($returnarray as $line)
trigger_error($line, E_USER_WARNING);
}