]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/View.php
Post update function to set the "external-id"
[friendica.git] / src / Database / View.php
index 84570632054a8640db2339a9cdf8f1ef2ace9ee3..e49eb8cc51cfcc7f664b1054e83cc1eff823401a 100644 (file)
@@ -117,11 +117,11 @@ class View
                        $sql = sprintf("DROP TABLE IF EXISTS `%s`", DBA::escape($name));
                }
 
-               if ($verbose) {
+               if (!empty($sql) && $verbose) {
                        echo $sql . ";\n";
                }
 
-               if ($action) {
+               if (!empty($sql) && $action) {
                        DBA::e($sql);
                }