X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDatabase%2FView.php;h=e0d30481524d3bb0c6fe07b2806dfaa202b5c1cc;hb=f26226229a45af4053055b8a5ea7aa0f7aa33e0c;hp=84570632054a8640db2339a9cdf8f1ef2ace9ee3;hpb=c8476f68387a030394b7d70d33268afaa95aab10;p=friendica.git diff --git a/src/Database/View.php b/src/Database/View.php index 8457063205..e0d3048152 100644 --- a/src/Database/View.php +++ b/src/Database/View.php @@ -1,6 +1,6 @@ $structure) { @@ -117,11 +131,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); }