From 5b5e532cda367cfa09fb55e6964a2639508dd963 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Thu, 4 Oct 2012 10:26:16 +0000 Subject: [PATCH] // Protection --- 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