File tree Expand file tree Collapse file tree 2 files changed +1432
-2
lines changed
Expand file tree Collapse file tree 2 files changed +1432
-2
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ function updateDbAndIni() {
179179 }
180180
181181 //* Exec onBeforeSQL function
182- if (isset ($ php_patch ) && is_object ($ php_patch )) {
182+ if (isset ($ php_patch ) && is_object ($ php_patch ) && method_exists ( $ php_patch , ' onBeforeSQL ' ) ) {
183183 $ php_patch ->onBeforeSQL ();
184184 swriteln ($ inst ->lng ('Executing PHP patch file ' ).': ' .$ php_patch_filename );
185185 }
@@ -193,7 +193,7 @@ function updateDbAndIni() {
193193 swriteln ($ inst ->lng ('Loading SQL patch file ' ).': ' .$ sql_patch_filename );
194194
195195 //* Exec onAfterSQL function
196- if (isset ($ php_patch ) && is_object ($ php_patch )) {
196+ if (isset ($ php_patch ) && is_object ($ php_patch ) && method_exists ( $ php_patch , ' onAfterSQL ' ) ) {
197197 $ php_patch ->onAfterSQL ();
198198 }
199199
You can’t perform that action at this time.
0 commit comments