Improve photo loading speed

This commit is contained in:
Michael 2020-12-26 18:51:36 +00:00
parent 3ed4f427bf
commit 7f56e2e7a9
7 changed files with 103 additions and 29 deletions

View 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);
}