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.
Merge pull request #60 from davidcumberland/master

Update dialog.php