diff options
author | Christian Schneider | 2009-07-09 22:45:01 +0000 |
---|---|---|
committer | Christian Schneider | 2009-07-09 22:45:01 +0000 |
commit | b4802636815a2ed0cdf8f2f567f232f23dfa8192 (patch) | |
tree | 81cf3373b0ef0221e79b66e31a1dcddf0b4e136a | |
parent | 1fbdfc360a9e2867e60818d356c29ee6ce78e0cb (diff) | |
download | itools-b4802636815a2ed0cdf8f2f567f232f23dfa8192.tar.gz itools-b4802636815a2ed0cdf8f2f567f232f23dfa8192.tar.bz2 itools-b4802636815a2ed0cdf8f2f567f232f23dfa8192.zip |
Fix warning on PHP 5.3 when passing non-object to get_class()
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -485,7 +485,7 @@ function imageconvert($p) $result = false; $imagetype = @exif_imagetype($p['in']); - if (!$imagetype && get_class(it_xml::create(@fopen($p['in'], "r"), array('prefix' => "_imageconvert_"))) == "_imageconvert_svg") + if (!$imagetype && @get_class(it_xml::create(fopen($p['in'], "r"), array('prefix' => "_imageconvert_"))) == "_imageconvert_svg") { # Accept SVG files if they are valid XML and root tag is svg $type = "svg"; |