Code

Fixed error
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Jun 2007 08:50:35 +0000 (08:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 Jun 2007 08:50:35 +0000 (08:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6602 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/applications/class_applicationGeneric.inc

index 1882c313a502eae20d68efbc7d1fc4dba0124dfb..1169b1786527a88fa2cd70c60d322e414b76a1a8 100644 (file)
@@ -348,7 +348,7 @@ class application extends plugin
             print_red(_("Could not convert image to png, possilby the image magick extension is missing."));
           }
 
-          if(imagick_writeimage($handle,$_FILES['picture_file']['tmp_name'])){
+          if(!imagick_writeimage($handle,$_FILES['picture_file']['tmp_name'])){
             print_red(sprintf(_("Could not save uploaded image to %s."),$_FILES['picture_file']['tmp_name']));
           }