X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDatabase%2FView.php;h=e0d30481524d3bb0c6fe07b2806dfaa202b5c1cc;hb=b4f2630fea8a8e1274bc123f9c78e751e72103c3;hp=fd0a8ce1a52cf48a700a5792f9626d7cef1afe6d;hpb=bd4dc10588d2c1b5d3c2b4ba2476d87700b0d4a6;p=friendica.git diff --git a/src/Database/View.php b/src/Database/View.php index fd0a8ce1a5..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); } @@ -158,7 +172,7 @@ class View } /** - * Check if the given table/view is a view + * Check if the given table/view is a table * * @param string $table * @return boolean "true" if it's a table