issue98, debug-message when cleaning up the database
[phpfspot.git] / phpfspot.class.php
index 837e3e1db4ffb86ce91fb9f7738705b4d3bde4c2..a0082dd5fb7a26e87584a392e6e3b9353b054553 100644 (file)
@@ -2397,6 +2397,8 @@ class PHPFSPOT {
          }
       }
 
          }
       }
 
+      print count($to_delete) ." unnecessary objects will be removed from phpfspot's database.\n";
+
       $this->cfg_db->db_exec("
          DELETE FROM images
          WHERE img_idx IN (". implode($to_delete) .")
       $this->cfg_db->db_exec("
          DELETE FROM images
          WHERE img_idx IN (". implode($to_delete) .")