From 4824901a27fa6f2f3fc14955e3353b8ca58cc781 Mon Sep 17 00:00:00 2001
From: Sergio Cambra <sergio@programatica.es>
Date: Mon, 30 Jun 2014 05:13:24 -0400
Subject: [PATCH] display warning message instead of info

---
 install/lib/update.lib.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/install/lib/update.lib.php b/install/lib/update.lib.php
index 52d4a3c..f81ed45 100644
--- a/install/lib/update.lib.php
+++ b/install/lib/update.lib.php
@@ -182,7 +182,7 @@
 				}
 
 				//* Exec onBeforeSQL function
-				if(isset($php_patch) && is_object($php_patch)) {
+				if(isset($php_patch) && is_object($php_patch) && method_exists($php_patch, 'onBeforeSQL')) {
 					$php_patch->onBeforeSQL();
 					swriteln($inst->lng('Executing PHP patch file').': '.$php_patch_filename);
 				}
@@ -200,7 +200,7 @@
 				swriteln($inst->lng('Loading SQL patch file').': '.$sql_patch_filename);
 
 				//* Exec onAfterSQL function
-				if(isset($php_patch) && is_object($php_patch)) {
+				if(isset($php_patch) && is_object($php_patch) && method_exists($php_patch, 'onAfterSQL')) {
 					$php_patch->onAfterSQL();
 				}
 

--
Gitblit v1.9.1