]> git.mxchange.org Git - friendica.git/commitdiff
`$post_update` is no longer used. Instead `$prefix` needs to be checked. fixes/e-notice-boot-dba-class
authorRoland Häder <roland@mxchange.org>
Sun, 22 Jul 2018 16:34:42 +0000 (18:34 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 22 Jul 2018 16:34:42 +0000 (18:34 +0200)
boot.php

index 0aeb551a55029a03e362f1a804a934b30154302a..17caa19033c40efcdc5a37fc9a1808262b673312 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -768,16 +768,20 @@ function run_update_function($x, $prefix)
                        return false;
                } else {
                        Config::set('database', $funcname, 'success');
-                       if (isset($post_update)) {
+
+                       if ($prefix == 'update') {
                                Config::set('system', 'build', $x);
                        }
+
                        return true;
                }
        } else {
                Config::set('database', $funcname, 'success');
-               if (isset($post_update)) {
+
+               if ($prefix == 'update') {
                        Config::set('system', 'build', $x);
                }
+
                return true;
        }
 }