# Check if there is a page that already exists with the new
# filename.
+ $page_found = 0;
+
if ($page_filename ne $page_newfilename){
$string_handle = $database_handle->prepare('SELECT filename FROM ' . $class->convert($options{"TablePrefix"}) . '_' . $class->convert($database_filename) . '_database_pages WHERE filename = \'' . $class->convert($page_newfilename) . '\' LIMIT 1') or ( $error = "DatabaseError", $errorext = $database_handle->errstr, return );
}
- # Check if there were any filters in the filters database.
+ # Check if there were any filters in the filter database.
if (!$filter_count && !$new_id){
- # There were no filters in the filters database so set
+ # There were no filters in the filter database so set
# the new filter identification value to 1.
$new_id = 1;