X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDatabase%2FView.php;h=e0d30481524d3bb0c6fe07b2806dfaa202b5c1cc;hb=2eb03495826b456c00daad72af0b4f27a621d4e5;hp=84570632054a8640db2339a9cdf8f1ef2ace9ee3;hpb=6ebd023c4e4b43ebeba0684613bfca4681a4b1e7;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); }