diff --git a/config/config.inc.php b/config/config.inc.php
index 8e82879ad..1ed72711b 100644
--- a/config/config.inc.php
+++ b/config/config.inc.php
@@ -127,6 +127,9 @@
$config['gallery']['date_format'] = 'd.m.Y - G:i';
$config['gallery_pictureTime'] = '3000';
$config['gallery_bottom_bar'] = true;
+$config['gallery_db_check_enabled'] = true;
+$config['gallery_db_check_time'] = '10';
+
// PhotoSwipe
$config['pswp_clickToCloseNonZoomable'] = false;
$config['pswp_closeOnScroll'] = false;
diff --git a/gallery.php b/gallery.php
index 5027bf161..b4195cfd1 100644
--- a/gallery.php
+++ b/gallery.php
@@ -10,7 +10,6 @@
// to detect changes
$resp = array('dbsize'=>getDBSize());
exit(json_encode($resp));
-
}
$images = getImagesFromDB();
@@ -101,7 +100,9 @@
+
+