Merge pull request #6728 from nupplaphil/issue/6337-warnings
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Sat, 23 Feb 2019 09:23:46 +0000 (10:23 +0100)
committerGitHub <noreply@github.com>
Sat, 23 Feb 2019 09:23:46 +0000 (10:23 +0100)
Fixing Update retval warning

src/Core/Update.php

index 5df0675..ed6c058 100644 (file)
@@ -94,7 +94,7 @@ class Update
 
                                        // update the structure in one call
                                        $retval = DBStructure::update($basePath, $verbose, true);
-                                       if ($retval) {
+                                       if (!empty($retval)) {
                                                if ($sendMail) {
                                                        self::updateFailed(
                                                                DB_UPDATE_VERSION,