]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/View.php
Merge pull request #9830 from Extarys/actionfade
[friendica.git] / src / Database / View.php
index fd0a8ce1a52cf48a700a5792f9626d7cef1afe6d..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);
                }
 
@@ -158,7 +158,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