Update dialog.php

Declared the array.
Right clicking an image was returning 'Uncaught ReferenceError: files_prevent_duplicate is not defined include.min.js:1', not declaring the array was causing the issue.