From f90f8011b8800ef041c464616f995519cc2a20fa Mon Sep 17 00:00:00 2001 From: dMetzger Date: Thu, 4 Oct 2012 10:26:16 +0000 Subject: [PATCH] // Protection git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17750 b9a71923-0436-4b27-9f14-aed3839534dd --- install-dev/upgrade/php/p15018_change_image_types.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install-dev/upgrade/php/p15018_change_image_types.php b/install-dev/upgrade/php/p15018_change_image_types.php index e7d1bfecb..218b5e3ac 100644 --- a/install-dev/upgrade/php/p15018_change_image_types.php +++ b/install-dev/upgrade/php/p15018_change_image_types.php @@ -107,6 +107,8 @@ function p15018_change_image_types() function p15018_copy_or_rename($from, $to, $option) { + if (!file_exists($from)) + return; if ($option) copy($from, $to); else