Fix checking for required parameter in Exiftool
authorMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 30 Oct 2010 17:26:30 +0000 (13:26 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Sat, 30 Oct 2010 17:27:26 +0000 (13:27 -0400)
framework/Image/lib/Horde/Image/Exif/Exiftool.php

index 19b3739..55c7b47 100644 (file)
@@ -21,10 +21,10 @@ class Horde_Image_Exif_Exiftool extends Horde_Image_Exif_Base
 
     public function __construct($params)
     {
+        parent::__construct($params);
         if (empty($this->_params['exiftool'])) {
             throw new InvalidArgumentException('Missing required exiftool path');
         }
-        parent::__construct($params);
         $this->_exiftool = $this->_params['exiftool'];
     }