@@ -235,7 +235,6 @@ public function afterSave($object)
235235 }
236236
237237 $ toDelete = array ();
238- $ filesToValueIds = array ();
239238 foreach ($ value ['images ' ] as &$ image ) {
240239 if (!empty ($ image ['removed ' ])) {
241240 if (isset ($ image ['value_id ' ]) && !isset ($ picturesInOtherStores [$ image ['file ' ]])) {
@@ -278,6 +277,7 @@ public function afterSave($object)
278277 * @param boolean $move if true, it will move source file
279278 * @param boolean $exclude mark image as disabled in product page view
280279 * @return string
280+ * @throws Mage_Core_Exception
281281 */
282282 public function addImage (
283283 Mage_Catalog_Model_Product $ product ,
@@ -376,6 +376,7 @@ public function addImage(
376376 * @param boolean $move if true, it will move source file
377377 * @param boolean $exclude mark image as disabled in product page view
378378 * @return array array of parallel arrays with original and renamed files
379+ * @throws Mage_Core_Exception
379380 */
380381 public function addImagesWithDifferentMediaAttributes (
381382 Mage_Catalog_Model_Product $ product ,
@@ -637,6 +638,7 @@ protected function _getUniqueFileName($file, $dirsep)
637638 *
638639 * @param string $file
639640 * @return string
641+ * @throws Mage_Core_Exception
640642 */
641643 protected function _copyImage ($ file )
642644 {
0 commit comments